Browse Source

Add undocumented option DIALYZER_PLT_OPTS

To be used as a workaround to enable --no_native when
there are issues with distro packages.
Loïc Hoguin 7 years ago
parent
commit
0e51f89ea7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      plugins/dialyzer.mk

+ 3 - 2
plugins/dialyzer.mk

@@ -11,6 +11,7 @@ export DIALYZER_PLT
 PLT_APPS ?=
 PLT_APPS ?=
 DIALYZER_DIRS ?= --src -r $(wildcard src) $(ALL_APPS_DIRS)
 DIALYZER_DIRS ?= --src -r $(wildcard src) $(ALL_APPS_DIRS)
 DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
 DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
+DIALYZER_PLT_OPTS ?=
 
 
 # Core targets.
 # Core targets.
 
 
@@ -44,8 +45,8 @@ endef
 $(DIALYZER_PLT): deps app
 $(DIALYZER_PLT): deps app
 	$(eval DEPS_LOG := $(shell test -f $(ERLANG_MK_TMP)/deps.log && \
 	$(eval DEPS_LOG := $(shell test -f $(ERLANG_MK_TMP)/deps.log && \
 		while read p; do test -d $$p/ebin && echo $$p/ebin; done <$(ERLANG_MK_TMP)/deps.log))
 		while read p; do test -d $$p/ebin && echo $$p/ebin; done <$(ERLANG_MK_TMP)/deps.log))
-	$(verbose) dialyzer --build_plt --apps erts kernel stdlib \
+	$(verbose) dialyzer --build_plt $(DIALYZER_PLT_OPTS) --apps \
-		$(PLT_APPS) $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS_LOG)
+		erts kernel stdlib $(PLT_APPS) $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS_LOG)
 
 
 plt: $(DIALYZER_PLT)
 plt: $(DIALYZER_PLT)