diff options
| author | 2023-08-20 14:52:58 -0700 | |
|---|---|---|
| committer | 2023-08-25 19:22:31 -0400 | |
| commit | 32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c (patch) | |
| tree | 9d194999e60da9f1d09b9ffe4fe6198baca7d8c4 /src | |
| parent | Warnings cleanup for GCC 13 and Clang 16 (diff) | |
| download | yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.gz yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.xz yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.zip | |
Avoid `$<CXX_COMPILER_ID:Clang>` because it doesn't include AppleClang.
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") |