CMakeLists.txt: also allow GNU linker to use thinlto cache
This commit is contained in:
parent
2f94e17852
commit
b18f6f1d87
@ -175,7 +175,7 @@ function(give_options_without_warnings target)
|
|||||||
$<$<BOOL:${TWN_SANITIZE}>:-fstack-protector-all -fsanitize=undefined -fsanitize=address>
|
$<$<BOOL:${TWN_SANITIZE}>:-fstack-protector-all -fsanitize=undefined -fsanitize=address>
|
||||||
$<$<BOOL:${EMSCRIPTEN}>:-gsource-map>)
|
$<$<BOOL:${EMSCRIPTEN}>:-gsource-map>)
|
||||||
|
|
||||||
if (CMAKE_C_COMPILER_LINKER_ID MATCHES GNUgold)
|
if (CMAKE_C_COMPILER_LINKER_ID MATCHES GNU OR CMAKE_C_COMPILER_LINKER_ID MATCHES GNUgold)
|
||||||
set(THINLTO_USAGE "-plugin-opt,")
|
set(THINLTO_USAGE "-plugin-opt,")
|
||||||
endif()
|
endif()
|
||||||
if (CMAKE_C_COMPILER_LINKER_ID MATCHES LLD)
|
if (CMAKE_C_COMPILER_LINKER_ID MATCHES LLD)
|
||||||
|
Loading…
Reference in New Issue
Block a user