Browse Source

Autopatch: do not export ERLC_OPTS

Otherwise some dependencies may get the wrong ERLC_OPTS
and may end up with invalid or duplicate options.
Loïc Hoguin 2 years ago
parent
commit
95ea4d6343
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/deps.mk

+ 1 - 1
core/deps.mk

@@ -355,7 +355,7 @@ define dep_autopatch_rebar.erl
 		(V) when is_list(V) -> "'\\"" ++ V ++ "\\"'"
 	end,
 	fun() ->
-		Write("ERLC_OPTS = +debug_info\nexport ERLC_OPTS\n"),
+		Write("ERLC_OPTS = +debug_info\n"),
 		case lists:keyfind(erl_opts, 1, Conf) of
 			false -> ok;
 			{_, ErlOpts} ->