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 0be69e9 + cb1aa8a commit 2ce432eCopy full SHA for 2ce432e
llvm/cmake/modules/AddLLVM.cmake
@@ -254,6 +254,12 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND NOT WIN32)
254
endif()
255
256
function(add_link_opts target_name)
257
+ # Newer lld defaults to no-undefined-version, which we don't expect
258
+ if(LLVM_LINKER_IS_LLD)
259
+ set_property(TARGET ${target_name} APPEND_STRING PROPERTY
260
+ LINK_FLAGS " -Wl,-undefined-version")
261
+ endif()
262
+
263
get_llvm_distribution(${target_name} in_distribution in_distribution_var)
264
if(NOT in_distribution)
265
# Don't LTO optimize targets that aren't part of any distribution.
0 commit comments