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")