Restrict using mold linker to clang.

This commit is contained in:
Bartosz Taudul 2024-05-12 19:44:58 +02:00
parent 1a971d867d
commit 813f4243db
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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