diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2015-12-16 12:22:15 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2015-12-16 12:23:13 +0100 |
commit | bae333788b168ef06609c50f16254b183fde7f22 (patch) | |
tree | 75cfaa1f653e31001f1f44b8983fb5be4fe94f13 /rebar.config.script | |
parent | Advertise MAM in disco info for account/room JID (diff) |
Add plugin for passing extra erl_opts flags to deps, and use it for hipe
This fixes #425 in github issue tracker
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rebar.config.script b/rebar.config.script index e47890036..0204e7b70 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -157,10 +157,10 @@ CfgXrefs = lists:flatmap( ElixirConfig = case lists:keysearch(elixir, 1, Cfg) of {value, {elixir, true}} -> - [{plugins, [rebar_elixir_compiler, rebar_exunit] }, + [{plugins, [deps_erl_opts, rebar_elixir_compiler, rebar_exunit] }, {lib_dirs, ["deps/elixir/lib"]}]; _ -> - [] + [{plugins, [deps_erl_opts]}] end, {ok, Cwd} = file:get_cwd(), @@ -181,6 +181,7 @@ AllDeps = case lists:keytake(lager, 1, AllDeps0) of Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++ [{src_dirs, [asn1, src | SrcDirs]}]}, + {deps_erl_opts, HiPE}, {sub_dirs, ["rel"]}, {keep_build_info, true}, {ct_extra_params, "-ct_hooks cth_surefire " |