|
@@ -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;
|