We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d945d25 + c5ebedd commit 03ca228Copy full SHA for 03ca228
llvm/cmake/modules/AddLLVM.cmake
@@ -296,6 +296,12 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND NOT WIN32)
296
endif()
297
298
function(add_link_opts target_name)
299
+ # Newer lld defaults to no-undefined-version, which we don't expect
300
+ if(LLVM_LINKER_IS_LLD)
301
+ set_property(TARGET ${target_name} APPEND_STRING PROPERTY
302
+ LINK_FLAGS " -Wl,-undefined-version")
303
+ endif()
304
+
305
get_llvm_distribution(${target_name} in_distribution in_distribution_var)
306
if(NOT in_distribution)
307
# Don't LTO optimize targets that aren't part of any distribution.
0 commit comments