mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
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:
8
cmake/Linker.cmake
Normal file
8
cmake/Linker.cmake
Normal 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 ()
|
||||
Reference in New Issue
Block a user