diff options
| author | 2023-04-02 19:02:04 -0400 | |
|---|---|---|
| committer | 2023-04-02 19:02:04 -0400 | |
| commit | a9623d5f550c8fc63f436a40f43bfbf539ac0853 (patch) | |
| tree | b6513dfee3b8410ab61d5e9ea799e757f049a1de /src/CMakeLists.txt | |
| parent | Merge pull request #10005 from liamwhite/kernel-atomics (diff) | |
| download | yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.gz yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.xz yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.zip | |
general: fixes for gcc 13
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0eca8e90e..312a49f42 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -126,6 +126,17 @@ else() | |||
| 126 | add_compile_options("-stdlib=libc++") | 126 | add_compile_options("-stdlib=libc++") |
| 127 | endif() | 127 | endif() |
| 128 | 128 | ||
| 129 | # GCC bugs | ||
| 130 | if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
| 131 | # These diagnostics would be great if they worked, but are just completely broken | ||
| 132 | # and produce bogus errors on external libraries like fmt. | ||
| 133 | add_compile_options( | ||
| 134 | -Wno-array-bounds | ||
| 135 | -Wno-stringop-overread | ||
| 136 | -Wno-stringop-overflow | ||
| 137 | ) | ||
| 138 | endif() | ||
| 139 | |||
| 129 | # Set file offset size to 64 bits. | 140 | # Set file offset size to 64 bits. |
| 130 | # | 141 | # |
| 131 | # On modern Unixes, this is typically already the case. The lone exception is | 142 | # On modern Unixes, this is typically already the case. The lone exception is |