diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-04-18 10:51:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 10:51:21 -0700 |
commit | c48435a09f4b43ef1cf59a8ff6157b223550437c (patch) | |
tree | a63310593350ad743a8a7d7cc04dcfe27bbb96b5 | |
parent | cb743f76cbc26ac780066d285329e8a6c8330605 (diff) | |
parent | 497bc3b8de1d2952e5bed8d958d0d10e64ff77d0 (diff) |
Merge pull request #1750 from ferd/rework-dialyzer-options
Make rebar3 work with dialyzer internally
-rwxr-xr-x | bootstrap | 2 | ||||
-rw-r--r-- | rebar.config | 53 |
2 files changed, 23 insertions, 32 deletions
@@ -49,7 +49,7 @@ main(_) -> code:add_pathsa(DepsPaths), rebar3:run(["clean", "-a"]), - rebar3:run(["escriptize"]), + rebar3:run(["as", "prod", "escriptize"]), %% Done with compile, can turn back on error logger error_logger:tty(true). diff --git a/rebar.config b/rebar.config index 12fc8c5..c271f29 100644 --- a/rebar.config +++ b/rebar.config @@ -31,7 +31,6 @@ {erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, {platform_define, "^(19|2)", rand_only}, {platform_define, "^2", unicode_str}, - no_debug_info, warnings_as_errors]}. %% Use OTP 18+ when dialyzing rebar3 @@ -50,35 +49,27 @@ {bootstrap, []}, - {dialyze, [{overrides, [{add, erlware_commons, [{erl_opts, [debug_info]}]}, - {add, ssl_verify_fun, [{erl_opts, [debug_info]}]}, - {add, certifi, [{erl_opts, [debug_info]}]}, - {add, providers, [{erl_opts, [debug_info]}]}, - {add, getopt, [{erl_opts, [debug_info]}]}, - {add, bbmustache, [{erl_opts, [debug_info]}]}, - {add, relx, [{erl_opts, [debug_info]}]}, - {add, cf, [{erl_opts, [debug_info]}]}, - {add, cth_readable, [{erl_opts, [debug_info]}]}, - {add, eunit_formatters, [{erl_opts, [debug_info]}]}]}, - {erl_opts, [debug_info]}]} + {prod, [ + {overrides, [ + {override, erlware_commons, [ + {erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, + {platform_define, "^R1[4|5]", deprecated_crypto}, + {platform_define, "^((1[8|9])|2)", rand_module}, + {platform_define, "^2", unicode_str}, + no_debug_info, + warnings_as_errors]}, + {deps, []}, {plugins, []}]}, + {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]}, + {add, certifi, [{erl_opts, [no_debug_info]}]}, + {add, cf, [{erl_opts, [no_debug_info]}]}, + {add, cth_readable, [{erl_opts, [no_debug_info]}]}, + {add, eunit_formatters, [{erl_opts, [no_debug_info]}]}, + {override, bbmustache, [ + {erl_opts, [no_debug_info, {platform_define, "^[0-9]+", namespaced_types}]}, + {deps, []}, {plugins, []}]}, + {add, getopt, [{erl_opts, [no_debug_info]}]}, + {add, providers, [{erl_opts, [no_debug_info]}]}, + {add, relx, [{erl_opts, [no_debug_info]}]}]} + ]} ]}. -%% Overrides -{overrides, [{override, erlware_commons, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, - {platform_define, "^R1[4|5]", deprecated_crypto}, - {platform_define, "^((1[8|9])|2)", rand_module}, - {platform_define, "^2", unicode_str}, - no_debug_info, - warnings_as_errors]}, - {deps, []}, {plugins, []}]}, - {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]}, - {add, certifi, [{erl_opts, [no_debug_info]}]}, - {add, cf, [{erl_opts, [no_debug_info]}]}, - {add, cth_readable, [{erl_opts, [no_debug_info]}]}, - {add, eunit_formatters, [{erl_opts, [no_debug_info]}]}, - {override, bbmustache, [{erl_opts, [no_debug_info, - {platform_define, "^[0-9]+", namespaced_types}]}, - {deps, []}, {plugins, []}]}, - {add, getopt, [{erl_opts, [no_debug_info]}]}, - {add, providers, [{erl_opts, [no_debug_info]}]}, - {add, relx, [{erl_opts, [no_debug_info]}]}]}. |