Add travis C++11 on/off matrix
This commit is contained in:
parent
a7490404ba
commit
403115019b
11
.travis.yml
11
.travis.yml
@ -6,10 +6,12 @@ compiler:
|
||||
|
||||
env:
|
||||
matrix:
|
||||
- CONF=debug ARCH=x86_64
|
||||
- CONF=release ARCH=x86_64
|
||||
- CONF=debug ARCH=x86
|
||||
- CONF=release ARCH=x86
|
||||
- CONF=debug ARCH=x86_64 CXX11=ON
|
||||
- CONF=release ARCH=x86_64 CXX11=ON
|
||||
- CONF=debug ARCH=x86 CXX11=ON
|
||||
- CONF=release ARCH=x86 CXX11=ON
|
||||
- CONF=debug ARCH=x86_64 CXX11=OFF
|
||||
- CONF=debug ARCH=x86 CXX11=OFF
|
||||
global:
|
||||
- ARCH_FLAGS_x86='-m32' # #266: don't use SSE on 32-bit
|
||||
- ARCH_FLAGS_x86_64='-msse4.2' # use SSE4.2 on 64-bit
|
||||
@ -34,6 +36,7 @@ before_script:
|
||||
eval "ARCH_FLAGS=\${ARCH_FLAGS_${ARCH}}" ;
|
||||
(cd build && cmake
|
||||
-DRAPIDJSON_HAS_STDSTRING=ON
|
||||
-DRAPIDJSON_BUILD_CXX11=$CXX11
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
-DCMAKE_BUILD_TYPE=$CONF
|
||||
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS"
|
||||
|
Loading…
x
Reference in New Issue
Block a user