From 8dea900869227dd2595ad0ab972cd2b992866c70 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Wed, 27 Feb 2019 17:41:40 +0100 Subject: [PATCH] Travis: build in Release mode --- scripts/travis/cmake.sh | 7 +++++-- test/CMakeLists.txt | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/travis/cmake.sh b/scripts/travis/cmake.sh index 56691d9b..7e22709c 100755 --- a/scripts/travis/cmake.sh +++ b/scripts/travis/cmake.sh @@ -1,6 +1,6 @@ #!/bin/sh -ex -if [ $(uname) = 'Darwin' ]; then +if [ "$(uname)" = 'Darwin' ]; then URL=https://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz CMAKE=/tmp/CMake.app/Contents/bin/cmake CTEST=/tmp/CMake.app/Contents/bin/ctest @@ -23,8 +23,11 @@ fi if [ -n "$SANITIZE" ]; then export CXXFLAGS="-fsanitize=$SANITIZE" + BUILD_TYPE="Debug" +else + BUILD_TYPE="Release" fi -$CMAKE . +$CMAKE -DCMAKE_BUILD_TYPE=$BUILD_TYPE . $CMAKE --build . $CTEST --output-on-failure . diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a1f5471d..ff374b6e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,7 +24,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") -Wshadow -Wsign-promo -Wstrict-aliasing - -Wstrict-overflow=5 -Wundef )