diff --git a/deps/oauth2_client/Makefile b/deps/oauth2_client/Makefile index 2f0a4f52e9b2..1e5117560173 100644 --- a/deps/oauth2_client/Makefile +++ b/deps/oauth2_client/Makefile @@ -11,8 +11,5 @@ PLT_APPS = rabbit DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-plugin.mk DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk -# Required to properly autopatch jose. -ELIXIR = system - include rabbitmq-components.mk include erlang.mk diff --git a/deps/rabbit_common/mk/rabbitmq-early-plugin.mk b/deps/rabbit_common/mk/rabbitmq-early-plugin.mk index e59da1e4b06a..94e153e2139e 100644 --- a/deps/rabbit_common/mk/rabbitmq-early-plugin.mk +++ b/deps/rabbit_common/mk/rabbitmq-early-plugin.mk @@ -4,9 +4,6 @@ DIALYZER_OPTS ?= -Werror_handling -Wunmatched_returns -Wunknown -dialyze: ELIXIR_LIBS = $(dir $(shell readlink -f `which elixir`))/../lib -dialyze: ERL_LIBS = $(APPS_DIR):$(DEPS_DIR):$(ELIXIR_LIBS) - # -------------------------------------------------------------------- # Common Test flags. # -------------------------------------------------------------------- diff --git a/deps/rabbitmq_auth_backend_oauth2/Makefile b/deps/rabbitmq_auth_backend_oauth2/Makefile index f6bd1a01fcfb..f78abc8c7bcb 100644 --- a/deps/rabbitmq_auth_backend_oauth2/Makefile +++ b/deps/rabbitmq_auth_backend_oauth2/Makefile @@ -19,8 +19,5 @@ dep_base64url = hex 1.0.1 dep_emqtt = git https://github.com/emqx/emqtt.git 1.14.6 -# Required to properly autopatch jose. -ELIXIR = system - include ../../rabbitmq-components.mk include ../../erlang.mk diff --git a/deps/rabbitmq_cli/Makefile b/deps/rabbitmq_cli/Makefile index e380cca1e11f..a3de459e285c 100644 --- a/deps/rabbitmq_cli/Makefile +++ b/deps/rabbitmq_cli/Makefile @@ -30,10 +30,6 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk VERBOSE_TEST ?= true MAX_CASES ?= 1 -# Force enable Elixir in this project since -# this is an Elixir application. -ELIXIR = system - # We are still using Mix for testing. MIX_TEST_OPTS ?= "" MIX_TEST = ERL_COMPILER_OPTIONS=deterministic MIX_ENV=test mix do compile --warnings-as-errors, test --max-cases=$(MAX_CASES) --warnings-as-errors diff --git a/rabbitmq-components.mk b/rabbitmq-components.mk index 7424e5ddd619..749f0d12b25d 100644 --- a/rabbitmq-components.mk +++ b/rabbitmq-components.mk @@ -1,3 +1,7 @@ +# Force enable Elixir in all projects since +# running dialyzer on any of them requires it +ELIXIR = system + ifeq ($(.DEFAULT_GOAL),) # Define default goal to `all` because this file defines some targets # before the inclusion of erlang.mk leading to the wrong target becoming