summarylogtreecommitdiffstats
path: root/toolchain.cmake
blob: 628bb3efe0702a1b6e64fd7dfcd64d0d984a2b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# this triggers CMAKE_CROSSCOMPILING!
#set( CMAKE_SYSTEM_NAME Linux )
# e.g. to use mold with Clang
set(CMAKE_EXE_LINKER_FLAGS_INIT "-fuse-ld=mold")
set(CMAKE_MODULE_LINKER_FLAGS_INIT "-fuse-ld=mold")
set(CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=mold")

set(CMAKE_DISABLE_PRECOMPILE_HEADERS 1)
# e.g. to use mold with Clang
#set(CMAKE_EXE_LINKER_FLAGS_INIT "-fuse-ld=lld")
#set(CMAKE_MODULE_LINKER_FLAGS_INIT "-fuse-ld=lld")
#set(CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=lld")