Skip to content

Commit

Permalink
fix mad
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Aug 12, 2017
1 parent 2b47796 commit 886a1da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mad.hrl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-define(VERSION,"2b32eb").
-define(VERSION,"2b4779").
Binary file modified mad
Binary file not shown.
4 changes: 3 additions & 1 deletion src/compile/mad_erl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@

erl_to_beam(Bin, F) -> filename:join(Bin, filename:basename(F, ".erl") ++ ".beam").

filter(I) -> [ X || X <- I, X /= warnings_as_errors, X /= warn_export_all, X /=warn_unused_import] .

compile(File,Inc,Bin,Opt,Deps) ->
BeamFile = erl_to_beam(Bin, File),
Compiled = mad_compile:is_compiled(BeamFile, File),
if Compiled =:= false ->
Opts1 = ?COMPILE_OPTS(Inc, Bin, Opt, Deps),
mad:info("Compiling ~s~n", [File -- mad_utils:cwd()]),
ret(compile:file(File, Opts1));
ret(compile:file(File, filter(Opts1)));
true -> false end.

ret(error) -> true;
Expand Down

0 comments on commit 886a1da

Please sign in to comment.