diff options
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5fed3fd0..95d54dadc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -109,6 +109,8 @@ if (MSVC) | |||
| 109 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) | 109 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) |
| 110 | else() | 110 | else() |
| 111 | add_compile_options( | 111 | add_compile_options( |
| 112 | -fwrapv | ||
| 113 | |||
| 112 | -Werror=all | 114 | -Werror=all |
| 113 | -Werror=extra | 115 | -Werror=extra |
| 114 | -Werror=missing-declarations | 116 | -Werror=missing-declarations |
| @@ -133,7 +135,6 @@ else() | |||
| 133 | 135 | ||
| 134 | if (ARCHITECTURE_x86_64) | 136 | if (ARCHITECTURE_x86_64) |
| 135 | add_compile_options("-mcx16") | 137 | add_compile_options("-mcx16") |
| 136 | add_compile_options("-fwrapv") | ||
| 137 | endif() | 138 | endif() |
| 138 | 139 | ||
| 139 | if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) | 140 | if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) |