diff --git a/CMakeLists.txt b/CMakeLists.txt index d1492e6..d25176b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,7 +175,7 @@ function(give_options_without_warnings target) $<$:-fstack-protector-all -fsanitize=undefined -fsanitize=address> $<$:-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,") endif() if (CMAKE_C_COMPILER_LINKER_ID MATCHES LLD)