diff options
Diffstat (limited to 'cmake/Toolset.cmake')
-rw-r--r-- | cmake/Toolset.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake index dfd1d3008..4e7017dfd 100644 --- a/cmake/Toolset.cmake +++ b/cmake/Toolset.cmake @@ -80,12 +80,14 @@ if(NOT LINKER_NAME) if(LLD_PATH) if (COMPILER_CLANG) set(LINKER_NAME "lld") - else() + elseif(NOT SANITIZE) if(GOLD_PATH) set(LINKER_NAME "gold") else() - message(STATUS "Use generic 'ld' as a linker") + message(STATUS "Use generic 'ld' as a linker: gold not found") endif() + else() + message(STATUS "Use generic 'ld' as a linker: sanitizers are enabled") endif() elseif(GOLD_PATH) set(LINKER_NAME "gold") |