No mold on emscripten.

This commit is contained in:
Bartosz Taudul 2024-07-17 22:54:07 +02:00
parent 68357bd9fb
commit 5098fc2a70
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -42,7 +42,7 @@ if(EMSCRIPTEN)
add_link_options(-pthread) add_link_options(-pthread)
endif() endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT EMSCRIPTEN)
find_program(MOLD_LINKER mold) find_program(MOLD_LINKER mold)
if(MOLD_LINKER) if(MOLD_LINKER)
set(CMAKE_LINKER_TYPE "MOLD") set(CMAKE_LINKER_TYPE "MOLD")