File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ jobs:
163
163
packages :
164
164
- g++-5
165
165
install :
166
- - cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_FLAGS_RELEASE=-O3' '-DCMAKE_CXX_FLAGS=-Wall -Wpedantic -Werror' '- DCMAKE_CXX_COMPILER=g++-5' '-Dsat_impl=glucose'
166
+ - cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=g++-5' '-Dsat_impl=glucose'
167
167
- cmake --build build -- -j4
168
168
script : (cd build; ctest -V -L CORE)
169
169
@@ -174,7 +174,7 @@ jobs:
174
174
- BUILD_SYSTEM=cmake
175
175
- CCACHE_CPP2=yes
176
176
install :
177
- - cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_FLAGS_RELEASE=-O3' '-DCMAKE_CXX_FLAGS=-Wall -Wpedantic -Werror' '- DCMAKE_OSX_ARCHITECTURES=x86_64'
177
+ - cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_OSX_ARCHITECTURES=x86_64'
178
178
- cmake --build build -- -j4
179
179
script : (cd build; ctest -V -L CORE)
180
180
Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
13
13
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
14
14
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
15
15
16
+ if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" OR
17
+ "${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU"
18
+ )
19
+ # Ensure NDEBUG is not set for release builds
20
+ set (CMAKE_CXX_FLAGS_RELEASE "-O2" )
21
+ # Enable lots of warnings
22
+ set (CMAKE_CXX_FLAGS "-Wall -Wpedantic -Werror" )
23
+ elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
24
+ # This would be the place to enable warnings for Windows builds, although
25
+ # config.inc doesn't seem to do that currently
26
+ endif ()
27
+
16
28
add_subdirectory (src)
17
29
18
30
set (enable_cbmc_tests on CACHE BOOL "Whether CBMC tests should be enabled" )
You can’t perform that action at this time.
0 commit comments