mirror of https://github.com/AxioDL/metaforce.git
CMake: Disable -Wall, disable LTO for GCC+gold
This commit is contained in:
parent
40a444d800
commit
2364c4cdba
|
@ -252,9 +252,9 @@ else()
|
||||||
endif()
|
endif()
|
||||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
|
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
|
||||||
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
|
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
|
||||||
-Wall -Wno-multichar -Werror=implicit-fallthrough
|
-Wall -Wno-multichar
|
||||||
-Wno-unused-variable -Wno-unused-result -Wno-unused-but-set-variable
|
-Wno-unused-variable -Wno-unused-result -Wno-unused-but-set-variable
|
||||||
-Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas -Werror)
|
-Wno-unused-function -Wno-sign-compare -Wno-unknown-pragmas)
|
||||||
# doesn't work with generator expression in add_compile_options?
|
# doesn't work with generator expression in add_compile_options?
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
|
||||||
add_compile_options(-Wno-unknown-warning-option -Wno-unused-private-field)
|
add_compile_options(-Wno-unknown-warning-option -Wno-unused-private-field)
|
||||||
|
|
|
@ -29,7 +29,11 @@
|
||||||
"generator": "Ninja",
|
"generator": "Ninja",
|
||||||
"binaryDir": "${sourceDir}/build/${presetName}",
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install"
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install",
|
||||||
|
"USE_LTO": {
|
||||||
|
"type": "BOOL",
|
||||||
|
"value": false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"vendor": {
|
"vendor": {
|
||||||
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
||||||
|
@ -66,7 +70,11 @@
|
||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_C_COMPILER": "clang",
|
"CMAKE_C_COMPILER": "clang",
|
||||||
"CMAKE_CXX_COMPILER": "clang++"
|
"CMAKE_CXX_COMPILER": "clang++",
|
||||||
|
"USE_LTO": {
|
||||||
|
"type": "BOOL",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue