Browse Source

fix beam releases on R19

Namdak Tonpa 8 years ago
parent
commit
41140cf064
4 changed files with 3 additions and 3 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 1 1
      src/compile/mad_erl.erl
  4. 1 1
      src/package/mad_systools.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"451634").
+-define(VERSION,"419450").

BIN
mad


+ 1 - 1
src/compile/mad_erl.erl

@@ -1,7 +1,7 @@
 -module(mad_erl).
 -copyright('Sina Samavati').
 -compile(export_all).
--define(COMPILE_OPTS(Inc, Ebin, Opts, Deps), [return_errors, return_warnings, {i, [Inc]}, {outdir, Ebin}] ++ Opts++Deps).
+-define(COMPILE_OPTS(Inc, Ebin, Opts, Deps), [return_errors, return_warnings, debug_info, {i, [Inc]}, {outdir, Ebin}] ++ Opts++Deps).
 
 erl_to_beam(Bin, F) -> filename:join(Bin, filename:basename(F, ".erl") ++ ".beam").
 

+ 1 - 1
src/package/mad_systools.erl

@@ -48,7 +48,7 @@ beam_release(N) ->
     Files = [ {"/bin/" ++ filename:basename(F), F}
         || F <- mad_repl:wildcards([code:root_dir() ++
             "/erts-" ++ erlang:system_info(version) ++
-            "/bin/{epmd,erlexec,run_erl,to_erl,escript,beam.smp}"]) ] ++
+            "/bin/{epmd,erlexec,run_erl,to_erl,escript,beam.smp,erl_child_setup}"]) ] ++
         apps(Apps) ++ scripts(N),
     erl_tar:create(N ++ ".tgz",Files,[compressed]),
     mad:info("~s.boot: ~p~n",[N,Res]),