From b18f6f1d8717b1b49df65a5fb909da24f43ae688 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Mon, 4 Nov 2024 16:26:56 +0300 Subject: [PATCH] CMakeLists.txt: also allow GNU linker to use thinlto cache --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)