Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | if(ENABLE_SANITIZERS) | ||||
include(Sanitizers) | include(Sanitizers) | ||||
enable_sanitizers(${ENABLE_SANITIZERS}) | enable_sanitizers(${ENABLE_SANITIZERS}) | ||||
endif() | endif() | ||||
include(AddCompilerFlags) | include(AddCompilerFlags) | ||||
if(USE_LINKER) | if(USE_LINKER) | ||||
set(LINKER_FLAG "-fuse-ld=${USE_LINKER}") | set(LINKER_FLAG "-fuse-ld=${USE_LINKER}") | ||||
check_linker_flag(IS_LINKER_SUPPORTED ${LINKER_FLAG}) | custom_check_linker_flag(IS_LINKER_SUPPORTED ${LINKER_FLAG}) | ||||
if(NOT IS_LINKER_SUPPORTED) | if(NOT IS_LINKER_SUPPORTED) | ||||
message(FATAL_ERROR "The ${USE_LINKER} linker is not supported, make sure ${USE_LINKER} is properly installed or use -DUSE_LINKER= to use the system's linker") | message(FATAL_ERROR "The ${USE_LINKER} linker is not supported, make sure ${USE_LINKER} is properly installed or use -DUSE_LINKER= to use the system's linker") | ||||
endif() | endif() | ||||
add_linker_flags(${LINKER_FLAG}) | add_linker_flags(${LINKER_FLAG}) | ||||
endif() | endif() | ||||
# Prefer -g3, defaults to -g if unavailable | # Prefer -g3, defaults to -g if unavailable | ||||
foreach(LANGUAGE C CXX) | foreach(LANGUAGE C CXX) | ||||
▲ Show 20 Lines • Show All 640 Lines • Show Last 20 Lines |