Warn when gold is used instead of lld

This commit is contained in:
Robert Schulze 2022-06-13 11:31:08 +00:00
parent 0696ee3758
commit 35c3944d1a
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -77,6 +77,7 @@ if (OS_LINUX AND NOT LINKER_NAME)
if (NOT LINKER_NAME)
if (GOLD_PATH)
message (WARNING "Linking with gold is not recommended. Please use lld.")
if (COMPILER_GCC)
set (LINKER_NAME "gold")
else ()