diff options
| author | David Wragg <david@rabbitmq.com> | 2011-02-07 13:47:54 +0000 |
|---|---|---|
| committer | David Wragg <david@rabbitmq.com> | 2011-02-07 13:47:54 +0000 |
| commit | c915c6c9d79f572478f71cbcaed64cd3636e224d (patch) | |
| tree | d7b5227b22eb3625cf05b57eae6e630b4fda7761 /Makefile | |
| parent | 74d4121e6af14658a21746d66cc5d5c2f2d17746 (diff) | |
| parent | bdaad0a3695966511c0f8e282705945ca7427647 (diff) | |
| download | rabbitmq-server-git-c915c6c9d79f572478f71cbcaed64cd3636e224d.tar.gz | |
Merge default into bug23568
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -41,14 +41,12 @@ RABBIT_PLT=rabbit.plt ifndef USE_SPECS # our type specs rely on features and bug fixes in dialyzer that are -# only available in R14A upwards (R13B04 is erts 5.7.5) -# -# NB: the test assumes that version number will only contain single digits -USE_SPECS=$(shell if [ $$(erl -noshell -eval 'io:format(erlang:system_info(version)), halt().') \> "5.7.5" ]; then echo "true"; else echo "false"; fi) +# only available in R14A upwards (R14A is erts 5.8) +USE_SPECS:=$(shell erl -noshell -eval 'io:format([list_to_integer(X) || X <- string:tokens(erlang:system_info(version), ".")] >= [5,8]), halt().') endif #other args: +native +"{hipe,[o3,verbose]}" -Ddebug=true +debug_info +no_strict_record_tests -ERLC_OPTS=-I $(INCLUDE_DIR) -o $(EBIN_DIR) -Wall -v +debug_info $(shell [ $(USE_SPECS) = "true" ] && echo "-Duse_specs") +ERLC_OPTS=-I $(INCLUDE_DIR) -o $(EBIN_DIR) -Wall -v +debug_info $(if $(filter true,$(USE_SPECS)),-Duse_specs) VERSION=0.0.0 TARBALL_NAME=rabbitmq-server-$(VERSION) |
