From ee06542f1f5439b1e0641e756a5b08ecc5dfaaf8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 30 Oct 2024 17:11:51 +0100 Subject: [PATCH] Restrict mold linker to Linux. --- cmake/config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/config.cmake b/cmake/config.cmake index 1367f9a5..e976ad62 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -39,7 +39,7 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT EMSCRIPTEN) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) endif() -if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT EMSCRIPTEN) +if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_SYSTEM_NAME STREQUAL "Linux") find_program(MOLD_LINKER mold) if(MOLD_LINKER) set(CMAKE_LINKER_TYPE "MOLD")