From b2d33583685c946307412a1e969956fc4c11e0d1 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Thu, 10 Dec 2020 11:43:28 +0100 Subject: [PATCH] chore(rebar): Move no_debug_info to per-profile config --- rebar.config | 5 ++--- rebar.config.erl | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rebar.config b/rebar.config index 146f46706..aba0e498b 100644 --- a/rebar.config +++ b/rebar.config @@ -9,12 +9,11 @@ {minimum_otp_vsn, "21.3"}. {edoc_opts, [{preprocess,true}]}. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import, - warn_obsolete_guard,no_debug_info,compressed]}. + warn_obsolete_guard,compressed]}. -{overrides,[{add,[{erl_opts,[no_debug_info,compressed,deterministic, +{overrides,[{add,[{erl_opts,[compressed,deterministic, {parse_transform,mod_vsn}]}]}]}. - {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used, deprecated_function_calls,warnings_as_errors, deprecated_functions]}. diff --git a/rebar.config.erl b/rebar.config.erl index 01425810a..6c7edd9cc 100644 --- a/rebar.config.erl +++ b/rebar.config.erl @@ -34,12 +34,16 @@ test_deps() -> profiles() -> [ {'emqx', [ {relx, relx('emqx')} + , {erl_opts, [no_debug_info]} ]} , {'emqx-pkg', [ {relx, relx('emqx-pkg')} + , {erl_opts, [no_debug_info]} ]} , {'emqx-edge', [ {relx, relx('emqx-edge')} + , {erl_opts, [no_debug_info]} ]} , {'emqx-edge-pkg', [ {relx, relx('emqx-edge-pkg')} + , {erl_opts, [no_debug_info]} ]} , {test, [ {deps, test_deps()} , {erl_opts, [debug_info]}