From 5098fc2a70c2bccd46ab3bf3000a05395d65a330 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 17 Jul 2024 22:54:07 +0200 Subject: [PATCH] No mold on emscripten. --- cmake/config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/config.cmake b/cmake/config.cmake index d32ee9f1..6a6e1583 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -42,7 +42,7 @@ if(EMSCRIPTEN) add_link_options(-pthread) endif() -if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT EMSCRIPTEN) find_program(MOLD_LINKER mold) if(MOLD_LINKER) set(CMAKE_LINKER_TYPE "MOLD")