aboutsummaryrefslogtreecommitdiffstats
path: root/core/erlc.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-07-21 17:16:32 +0200
committerLoïc Hoguin <[email protected]>2015-07-21 17:16:32 +0200
commit26ea355c28f674b168259aadc6847d46fafb313a (patch)
tree8323fb128447d623c9bf446034fba2c4cc8da298 /core/erlc.mk
parent56cbd9e0919b884025d9b21c4ad3de8bcc6fe573 (diff)
downloaderlang.mk-26ea355c28f674b168259aadc6847d46fafb313a.tar.gz
erlang.mk-26ea355c28f674b168259aadc6847d46fafb313a.tar.bz2
erlang.mk-26ea355c28f674b168259aadc6847d46fafb313a.zip
Don't use warning_as_errors for erlang.mk-style deps
Fix a bug where deps that use erlang.mk didn't have the -Werror option suppressed automatically.
Diffstat (limited to 'core/erlc.mk')
-rw-r--r--core/erlc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index f6bd6fd..144b57b 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -93,7 +93,7 @@ erlc-include:
fi
define compile_erl
- $(erlc_verbose) erlc -v $(ERLC_OPTS) -o ebin/ \
+ $(erlc_verbose) erlc -v $(if $(IS_DEP),$(filter-out -Werror,$(ERLC_OPTS)),$(ERLC_OPTS)) -o ebin/ \
-pa ebin/ -I include/ $(filter-out $(ERLC_EXCLUDE_PATHS),\
$(COMPILE_FIRST_PATHS) $(1))
endef