mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 08:50:57 +01:00
CMakeLists: Resolve #4478
This switch is enabled by default in all recent versions of GCC and Clang.
This commit is contained in:
parent
9b75481755
commit
dd2ff23621
1 changed files with 6 additions and 1 deletions
|
@ -60,9 +60,14 @@ else()
|
||||||
-Wmissing-declarations
|
-Wmissing-declarations
|
||||||
-Wno-attributes
|
-Wno-attributes
|
||||||
-Wno-unused-parameter
|
-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)
|
if (ARCHITECTURE_x86_64)
|
||||||
add_compile_options("-mcx16")
|
add_compile_options("-mcx16")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue