diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-10-27 14:29:08 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-10-27 14:31:56 +0100 |
| commit | 1c3e459a1e2ba6ff0a476f013dbbdea4fcdb7cac (patch) | |
| tree | 237442ce8c3c762178f68338a693daf135bcaf88 /Makefile | |
| parent | 5fd88e1008b28d6052794aef08f470a646f3a553 (diff) | |
| download | rabbitmq-server-git-1c3e459a1e2ba6ff0a476f013dbbdea4fcdb7cac.tar.gz | |
Makefile: USE_PROPER_QC is now a simply expanded variable
This shaves off 50% of the build time because the shell command is
evaluated only once.
Do the same for ERTS_VER, though it doesn't bring a significant speed
improvement.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -74,7 +74,7 @@ ifdef CREDIT_FLOW_TRACING RMQ_ERLC_OPTS += -DCREDIT_FLOW_TRACING=true endif -ERTS_VER = $(shell erl -version 2>&1 | sed -E 's/.* version //') +ERTS_VER := $(shell erl -version 2>&1 | sed -E 's/.* version //') USE_SPECS_MIN_ERTS_VER = 5.11 ifeq ($(call compare_version,$(ERTS_VER),$(USE_SPECS_MIN_ERTS_VER),>=),true) RMQ_ERLC_OPTS += -Duse_specs @@ -83,7 +83,7 @@ endif ifndef USE_PROPER_QC # PropEr needs to be installed for property checking # http://proper.softlab.ntua.gr/ -USE_PROPER_QC = $(shell $(ERL) -eval 'io:format({module, proper} =:= code:ensure_loaded(proper)), halt().') +USE_PROPER_QC := $(shell $(ERL) -eval 'io:format({module, proper} =:= code:ensure_loaded(proper)), halt().') RMQ_ERLC_OPTS += $(if $(filter true,$(USE_PROPER_QC)),-Duse_proper_qc) endif |
