Mercurial > hg > piper-cpp
comparison ext/json11/Makefile @ 242:d607ae858682
Update json11 code
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 13 Jun 2017 17:16:03 +0100 |
parents | bf8e3e7dd7de |
children |
comparison
equal
deleted
inserted
replaced
241:fdab0a246298 | 242:d607ae858682 |
---|---|
1 # Environment variable to enable or disable code which demonstrates the behavior change | |
2 # in Xcode 7 / Clang 3.7, introduced by DR1467 and described here: | |
3 # https://llvm.org/bugs/show_bug.cgi?id=23812 | |
4 # Defaults to on in order to act as a warning to anyone who's unaware of the issue. | |
5 ifneq ($(JSON11_ENABLE_DR1467_CANARY),) | |
6 CANARY_ARGS = -DJSON11_ENABLE_DR1467_CANARY=$(JSON11_ENABLE_DR1467_CANARY) | |
7 endif | |
8 | |
1 test: json11.cpp json11.hpp test.cpp | 9 test: json11.cpp json11.hpp test.cpp |
2 $(CXX) -O -std=c++11 json11.cpp test.cpp -o test -fno-rtti -fno-exceptions | 10 $(CXX) $(CANARY_ARGS) -O -std=c++11 json11.cpp test.cpp -o test -fno-rtti -fno-exceptions |
3 | 11 |
4 clean: | 12 clean: |
5 if [ -e test ]; then rm test; fi | 13 if [ -e test ]; then rm test; fi |
6 | 14 |
7 .PHONY: clean | 15 .PHONY: clean |