[libc-commits] [libc] [libc][startup] check that we're cross compiling and using LLD (PR #96357)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Jun 21 13:49:21 PDT 2024


================
@@ -26,7 +26,11 @@ function(merge_relocatable_object name)
   )
   # Pass -r to the driver is much cleaner than passing -Wl,-r: the compiler knows it is
   # a relocatable linking and will not pass other irrelevant flags to the linker.
-  target_link_options(${relocatable_target} PRIVATE -r -nostdlib --target=${explicit_target_triple})
+  set(link_opts -r -nostdlib)
+  if (explicit_target_triple)
----------------
nickdesaulniers wrote:

ah, one sec, forgot to commit the lld check

https://github.com/llvm/llvm-project/pull/96357


More information about the libc-commits mailing list