mirror of
https://github.com/correl/rebar.git
synced 2024-11-15 11:09:33 +00:00
Cleanup and fix -D for erl_opts
This commit is contained in:
parent
a0dcc624d9
commit
8eeca123e5
1 changed files with 3 additions and 3 deletions
|
@ -166,13 +166,13 @@ doterl_compile(Config, OutDir, MoreSources) ->
|
|||
|
||||
erl_opts(Config) ->
|
||||
RawErlOpts = filter_defines(rebar_config:get(Config, erl_opts, []), []),
|
||||
GlobalDefines = lists:map(fun(D) -> list_to_atom(D) end,
|
||||
rebar_config:get_global(defines, [])),
|
||||
GlobalDefines = [{d, list_to_atom(D)} ||
|
||||
D <- rebar_config:get_global(defines, [])],
|
||||
Opts = GlobalDefines ++ RawErlOpts,
|
||||
case proplists:is_defined(no_debug_info, Opts) of
|
||||
true ->
|
||||
[O || O <- Opts, O =/= no_debug_info];
|
||||
_ ->
|
||||
false ->
|
||||
[debug_info|Opts]
|
||||
end.
|
||||
|
||||
|
|
Loading…
Reference in a new issue