diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-16 22:09:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-16 22:10:13 +0100 |
commit | d2bf9fd226253e32d1d70f7ad379fcbb2ccb6d61 (patch) | |
tree | 193d7c2846866c349550239dafbba986b9ba4619 | |
parent | 1099b4e428ff621948a4b216a953ec7da27e708a (diff) | |
download | rspamd-d2bf9fd226253e32d1d70f7ad379fcbb2ccb6d61.tar.gz rspamd-d2bf9fd226253e32d1d70f7ad379fcbb2ccb6d61.zip |
[Minor] Do not use lld when clang is not the compiler...
-rw-r--r-- | cmake/Toolset.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake index fc019cf35..dfd1d3008 100644 --- a/cmake/Toolset.cmake +++ b/cmake/Toolset.cmake @@ -78,7 +78,15 @@ find_program(GOLD_PATH NAMES "ld.gold" "gold") if(NOT LINKER_NAME) if(LLD_PATH) - set(LINKER_NAME "lld") + if (COMPILER_CLANG) + set(LINKER_NAME "lld") + else() + if(GOLD_PATH) + set(LINKER_NAME "gold") + else() + message(STATUS "Use generic 'ld' as a linker") + endif() + endif() elseif(GOLD_PATH) set(LINKER_NAME "gold") else() |