diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 015b98d60..6068c7a1f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -114,17 +114,19 @@ else() | |||
| 114 | -Wno-attributes | 114 | -Wno-attributes |
| 115 | -Wno-invalid-offsetof | 115 | -Wno-invalid-offsetof |
| 116 | -Wno-unused-parameter | 116 | -Wno-unused-parameter |
| 117 | |||
| 118 | $<$<CXX_COMPILER_ID:Clang>:-Wno-braced-scalar-init> | ||
| 119 | $<$<CXX_COMPILER_ID:Clang>:-Wno-unused-private-field> | ||
| 120 | $<$<CXX_COMPILER_ID:Clang>:-Wno-nullability-completeness> | ||
| 121 | $<$<CXX_COMPILER_ID:Clang>:-Werror=shadow-uncaptured-local> | ||
| 122 | $<$<CXX_COMPILER_ID:Clang>:-Werror=implicit-fallthrough> | ||
| 123 | $<$<CXX_COMPILER_ID:Clang>:-Werror=type-limits> | ||
| 124 | $<$<CXX_COMPILER_ID:AppleClang>:-Wno-braced-scalar-init> | ||
| 125 | $<$<CXX_COMPILER_ID:AppleClang>:-Wno-unused-private-field> | ||
| 126 | ) | 117 | ) |
| 127 | 118 | ||
| 119 | if (CMAKE_CXX_COMPILER_ID MATCHES Clang) # Clang or AppleClang | ||
| 120 | add_compile_options( | ||
| 121 | -Wno-braced-scalar-init | ||
| 122 | -Wno-unused-private-field | ||
| 123 | -Wno-nullability-completeness | ||
| 124 | -Werror=shadow-uncaptured-local | ||
| 125 | -Werror=implicit-fallthrough | ||
| 126 | -Werror=type-limits | ||
| 127 | ) | ||
| 128 | endif() | ||
| 129 | |||
| 128 | if (ARCHITECTURE_x86_64) | 130 | if (ARCHITECTURE_x86_64) |
| 129 | add_compile_options("-mcx16") | 131 | add_compile_options("-mcx16") |
| 130 | add_compile_options("-fwrapv") | 132 | add_compile_options("-fwrapv") |