aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2017-04-25 13:24:38 +0200
committerJosé Valim <[email protected]>2017-04-25 13:24:38 +0200
commit9dfb4eda78ade372ff5055b618612e478dc900e6 (patch)
treeb6c0821679e79562ecef68883efec99d78316ccd /lib
parentdfb899c0229f7ff7dbfad34d496e0429562728bf (diff)
downloadotp-9dfb4eda78ade372ff5055b618612e478dc900e6.tar.gz
otp-9dfb4eda78ade372ff5055b618612e478dc900e6.tar.bz2
otp-9dfb4eda78ade372ff5055b618612e478dc900e6.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/src/compile.erl4
1 files changed, 2 insertions, 2 deletions
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.