From 9dfb4eda78ade372ff5055b618612e478dc900e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 25 Apr 2017 13:24:38 +0200 Subject: warnings_as_errors and outdir do not affect code generation By moving to effects_code_generation/1, there is no need to explicitly remove those options when storing compile information in the DebugInfo chunk. --- lib/compiler/src/compile.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/compiler/src') diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl index b106f856ee..be0f45323f 100644 --- a/lib/compiler/src/compile.erl +++ b/lib/compiler/src/compile.erl @@ -1369,8 +1369,6 @@ keep_compile_option(from_core) -> false; keep_compile_option({parse_transform, _}) -> false; keep_compile_option({d, _, _}) -> false; %% Do not affect compilation result on future calls. -keep_compile_option({outdir, _}) -> false; -keep_compile_option(warnings_as_errors) -> false; keep_compile_option(Option) -> effects_code_generation(Option). start_crypto() -> @@ -1498,9 +1496,11 @@ effects_code_generation(Option) -> report_errors -> false; return_errors-> false; return_warnings-> false; + warnings_as_errors -> false; binary -> false; verbose -> false; {cwd,_} -> false; + {outdir, _} -> false; _ -> true end. -- cgit v1.2.3