summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorncshaw <ncshaw@ibm.com>2021-12-17 13:39:26 -0500
committerNick Vatamaniuc <nickva@users.noreply.github.com>2021-12-17 15:49:32 -0500
commit186818c9f69b08508fdcc9bc42b38108e7508c78 (patch)
tree717621a9db403cfab96e6a869876cf00c1f97353
parent7487606e1f0eb6a12649479cfb2ccb7bcdbcc6fe (diff)
downloadcouchdb-186818c9f69b08508fdcc9bc42b38108e7508c78.tar.gz
Remove ERL_OPTS
-rw-r--r--Makefile2
-rw-r--r--Makefile.win2
-rw-r--r--rebar.config.script7
3 files changed, 3 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index e3916fc70..08113fe37 100644
--- a/Makefile
+++ b/Makefile
@@ -118,7 +118,7 @@ help:
.PHONY: couch
-# target: couch - Build CouchDB core, use ERL_OPTS to provide custom compiler's options
+# target: couch - Build CouchDB core, use ERL_COMPILER_OPTIONS to provide custom compiler's options
couch: config.erl
@COUCHDB_VERSION=$(COUCHDB_VERSION) COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) $(REBAR) compile $(COMPILE_OPTS)
@cp src/couch/priv/couchjs bin/
diff --git a/Makefile.win b/Makefile.win
index 62a0a8dec..3f42686e3 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -105,7 +105,7 @@ all: couch fauxton docs
.PHONY: couch
-# target: couch - Build CouchDB core, use ERL_OPTS to provide custom compiler's options
+# target: couch - Build CouchDB core, use ERL_COMPILER_OPTIONS to provide custom compiler's options
couch: config.erl
@set COUCHDB_VERSION=$(COUCHDB_VERSION) && set COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) && $(REBAR) compile $(COMPILE_OPTS)
@copy src\couch\priv\couchjs.exe bin
diff --git a/rebar.config.script b/rebar.config.script
index 9160dfbf4..47abca02f 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -191,18 +191,13 @@ MakeDep = fun
{AppName, ".*", {git, Url, Version}, Options}
end.
-ErlOpts = case os:getenv("ERL_OPTS") of
- false -> [];
- Opts -> [list_to_atom(O) || O <- string:tokens(Opts, ",")]
-end.
-
AddConfig = [
{require_otp_vsn, "20|21|22|23|24"},
{deps_dir, "src"},
{deps, lists:map(MakeDep, DepDescs ++ OptionalDeps)},
{sub_dirs, SubDirs},
{lib_dirs, ["src"]},
- {erl_opts, [{i, "../"}] ++ [{d, 'COUCHDB_ERLANG_VERSION', VerString}] ++ ErlOpts},
+ {erl_opts, [{i, "../"}, {d, 'COUCHDB_ERLANG_VERSION', VerString}]},
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]},
{plugins, [eunit_plugin]},
{dialyzer, [