diff options
| author | 2023-09-02 14:41:21 -0400 | |
|---|---|---|
| committer | 2023-09-02 20:41:21 +0200 | |
| commit | 32b2436f80f09fae88deef20711d34c037239bc5 (patch) | |
| tree | ce4760ed768713892cc5d2219e253a9695477e02 /src/CMakeLists.txt | |
| parent | Merge pull request #11430 from liamwhite/validation-error-whats-that (diff) | |
| download | yuzu-32b2436f80f09fae88deef20711d34c037239bc5.tar.gz yuzu-32b2436f80f09fae88deef20711d34c037239bc5.tar.xz yuzu-32b2436f80f09fae88deef20711d34c037239bc5.zip | |
general: make -fwrapv generic to all architectures (#11379)
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 6068c7a1f..a9f68a8f2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -105,6 +105,8 @@ if (MSVC) | |||
| 105 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) | 105 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) |
| 106 | else() | 106 | else() |
| 107 | add_compile_options( | 107 | add_compile_options( |
| 108 | -fwrapv | ||
| 109 | |||
| 108 | -Werror=all | 110 | -Werror=all |
| 109 | -Werror=extra | 111 | -Werror=extra |
| 110 | -Werror=missing-declarations | 112 | -Werror=missing-declarations |
| @@ -129,7 +131,6 @@ else() | |||
| 129 | 131 | ||
| 130 | if (ARCHITECTURE_x86_64) | 132 | if (ARCHITECTURE_x86_64) |
| 131 | add_compile_options("-mcx16") | 133 | add_compile_options("-mcx16") |
| 132 | add_compile_options("-fwrapv") | ||
| 133 | endif() | 134 | endif() |
| 134 | 135 | ||
| 135 | if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) | 136 | if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) |