Use mold linker if available.

This commit is contained in:
Bartosz Taudul 2024-03-23 02:08:00 +01:00
parent 8a411a72b8
commit e38d9fa7ce
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -37,3 +37,8 @@ if(EMSCRIPTEN)
add_compile_options(-pthread)
add_link_options(-pthread)
endif()
find_program(MOLD_LINKER mold)
if(MOLD_LINKER)
set(CMAKE_LINKER_TYPE "MOLD")
endif()