[libc-commits] [libc] [libc] [startup] add cmake function to merge separated crt1 objects (PR #75413)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Sat Dec 16 13:32:39 PST 2023
================
@@ -27,18 +70,24 @@ function(add_startup_object name)
)
endfunction()
+check_cxx_compiler_flag("-r" LIBC_LINKER_SUPPORTS_RELOCATABLE)
+
+if(NOT LIBC_LINKER_SUPPORTS_RELOCATABLE)
+ message(STATUS "Skipping startup for target architecture ${LIBC_TARGET_ARCHITECTURE}: linker does not support -r")
----------------
jhuber6 wrote:
Do we no longer export any startup files depending on this flag?
https://github.com/llvm/llvm-project/pull/75413
More information about the libc-commits
mailing list