diff options
| author | 2020-08-03 11:03:30 -0400 | |
|---|---|---|
| committer | 2020-08-03 11:21:24 -0400 | |
| commit | dd2ff236217cb02275cbfa66f50c265a578d1f1e (patch) | |
| tree | 39f2fbf829fa9fd949103862a75ff3594ca3a6b3 | |
| parent | ipc: Allow all trivially copyable objects to be passed directly into WriteBuf... (diff) | |
| download | yuzu-dd2ff236217cb02275cbfa66f50c265a578d1f1e.tar.gz yuzu-dd2ff236217cb02275cbfa66f50c265a578d1f1e.tar.xz yuzu-dd2ff236217cb02275cbfa66f50c265a578d1f1e.zip | |
CMakeLists: Resolve #4478
This switch is enabled by default in all recent versions of GCC and
Clang.
Diffstat (limited to '')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 54dca3302..71efbb40d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -60,9 +60,14 @@ else() | |||
| 60 | -Wmissing-declarations | 60 | -Wmissing-declarations |
| 61 | -Wno-attributes | 61 | -Wno-attributes |
| 62 | -Wno-unused-parameter | 62 | -Wno-unused-parameter |
| 63 | -fconcepts | ||
| 64 | ) | 63 | ) |
| 65 | 64 | ||
| 65 | # TODO: Remove when we update to a GCC compiler that enables this | ||
| 66 | # by default (i.e. GCC 10 or newer). | ||
| 67 | if (CMAKE_CXX_COMPILER_ID STREQUAL GNU) | ||
| 68 | add_compile_options(-fconcepts) | ||
| 69 | endif() | ||
| 70 | |||
| 66 | if (ARCHITECTURE_x86_64) | 71 | if (ARCHITECTURE_x86_64) |
| 67 | add_compile_options("-mcx16") | 72 | add_compile_options("-mcx16") |
| 68 | endif() | 73 | endif() |