diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-16 22:18:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-16 22:18:57 +0100 |
commit | cfd83431c040ffbd5dd946b4131a566195fe6d89 (patch) | |
tree | 7b42e7bcc8fc19cba2b0562a43d4d99d3d215f52 /cmake/Toolset.cmake | |
parent | d2bf9fd226253e32d1d70f7ad379fcbb2ccb6d61 (diff) | |
download | rspamd-cfd83431c040ffbd5dd946b4131a566195fe6d89.tar.gz rspamd-cfd83431c040ffbd5dd946b4131a566195fe6d89.zip |
[Minor] Another try to use the proper linker
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") |