feat: Use mold linker on Linux (#2304)

Fix: https://github.com/XRPLF/clio/issues/1242

Depends on: https://github.com/XRPLF/clio/pull/2329
This commit is contained in:
Ayaz Salikhov
2025-07-30 17:10:31 +01:00
committed by GitHub
parent 46b86a5d61
commit bc8a2c19aa
5 changed files with 22 additions and 1 deletions

8
cmake/Linker.cmake Normal file
View File

@@ -0,0 +1,8 @@
if (use_mold)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
message(STATUS "Using Mold linker")
set(CMAKE_LINKER_TYPE MOLD)
else ()
message(FATAL_ERROR "Mold linker is only supported on Linux.")
endif ()
endif ()