Files
wlan-cloud-lib-poco/build/script/cpp11-appleclang
zosrothko ba60e328b1 Travis CI (#2050)
* Factorize info into new verbose file. Refactor Makefile, global, cpp11*. Add Linux32-clang

* Display used config with POCO_VERBOSE

* Add cross compilation toward x86 with host amd64

* Refactor config names

* Add lib32gcc runtime

* Add g++-5-multilib

* Use OSARCH=i386 for OSX x86

* Avoid building Crypto since OpenSSL is only x64 on OSX

* Avoid building Crypto since OpenSSL is only x64

* Avoid Data/* on cross compilation to x86

* Add gcc-5-multilib to clang 4.0 x86

* Ignore TimerTest on OSX for now.

* Cleanup

* Add other set of TimerTest.

* New test that fails on OSX
2017-12-18 11:45:07 +01:00

17 lines
446 B
Bash

#! /bin/sh
#
# cpp11-appleclang
#
# Detect compatible AppleClang version and add c++11/14 flags
#
CXXVERSION := $(shell $(CXX) -E -dM - < /dev/null | grep __apple_build_version__ | sed -e 's/^.* //g')
# C++14 needs AppleClang 500.x
ifeq ($(shell test $(CXXVERSION) -ge 5000275 && echo 1), 1)
CXXFLAGS += -std=c++1y
# C++11 needs AppleClang 503.x
else ifeq ($(shell test $(CXXVERSION) -ge 5030038 && echo 1), 1)
CXXFLAGS += -std=c++0x
endif