summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-05 22:18:08 +0200
committerGitHub <noreply@github.com>2020-08-05 22:18:08 +0200
commite8868c2ed11e19f92d5ca49954f6f8f8b1792433 (patch)
tree12a3d8d431fd5907d85985697cc40732ea9316e2
parentMerge pull request #4444 from lioncash/volatile (diff)
parentCMakeLists: Resolve #4478 (diff)
downloadyuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.tar
yuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.tar.gz
yuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.tar.bz2
yuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.tar.lz
yuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.tar.xz
yuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.tar.zst
yuzu-e8868c2ed11e19f92d5ca49954f6f8f8b1792433.zip
-rw-r--r--src/CMakeLists.txt7
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()
-Wmissing-declarations
-Wno-attributes
-Wno-unused-parameter
- -fconcepts
)
+ # TODO: Remove when we update to a GCC compiler that enables this
+ # by default (i.e. GCC 10 or newer).
+ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
+ add_compile_options(-fconcepts)
+ endif()
+
if (ARCHITECTURE_x86_64)
add_compile_options("-mcx16")
endif()