mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
c++11 support: update the develop branch (#1819)
* Use appveyor.yaml from c++11 branch so that CI run ok. * Use .travis.yml from the c++ branch so that Travis CI jobs run ok. * Add c++11 scripts and Linux config so that Travis CI jobs are ok. * Use mkdocumentation & mkrelease from c++11 branch. * Use PocoDoc config files from c++11 branch. * define POCO_ENABLE_C11 as the default * CMake: ignore Crypto for now. To be fixed since it fails. * Backport c++11 changes from the c++11 branch * Add Cygwin config with c++11 setup. * Update appveyor.yml from c++11 branch.
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
63447f0297
commit
7bf53d4f3f
26
build/script/cpp11-clang
Normal file
26
build/script/cpp11-clang
Normal file
@@ -0,0 +1,26 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $Id: //poco/1.4/build/script/cpp11-clang#1 $
|
||||
#
|
||||
# cpp11-clang
|
||||
#
|
||||
# Detect compatible Clang version and add c++11/14 flags
|
||||
#
|
||||
|
||||
CLANGMAJOR := $(shell $(CXX) -x c++ /dev/null -dM -E | grep __clang_major__ | sed -e 's/^.* //g')
|
||||
CLANGMINOR := $(shell $(CXX) -x c++ /dev/null -dM -E | grep __clang_minor__ | sed -e 's/^.* //g')
|
||||
CLANGPATCH := $(shell $(CXX) -x c++ /dev/null -dM -E | grep __clang_patchlevel__ | sed -e 's/^.* //g')
|
||||
CLANGVERSION := $(CLANGMAJOR)$(CLANGMINOR)$(CLANGPATCH)
|
||||
|
||||
#
|
||||
# Clang 3.4 doesn't accept -std=c++14, only -std=c++1y.
|
||||
#
|
||||
|
||||
# C++14 needs Clang 3.4
|
||||
ifeq ($(shell test $(CLANGVERSION) -ge 340 && echo 1), 1)
|
||||
CXXFLAGS += -std=c++1y
|
||||
# C++11 needs Clang 3.3
|
||||
else ifeq ($(shell test $(CLANGVERSION) -ge 330 && echo 1), 1)
|
||||
CXXFLAGS += -std=c++0x
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user