[libc-commits] [libc] [llvm] [libc] Add bare-metal Hexagon port (PR #217528)
via libc-commits
libc-commits at lists.llvm.org
Wed Oct 14 09:52:08 PDT 2026
================
@@ -521,6 +513,25 @@ if(NOT MSVC AND NOT LIBC_CC_SUPPORTS_NOSTDLIBPP)
string(STRIP ${LIBGCC_S_LOCATION} LIBGCC_S_LOCATION)
endif()
+# Hermetic and integration tests link with -nodefaultlibs, so the compiler
+# runtime builtins have to be linked explicitly. -print-libgcc-file-name
+# reports whichever library the driver would use (libgcc.a or
+# libclang_rt.builtins.a). GPU and UEFI targets do not link a compiler runtime.
+if(LLVM_INCLUDE_TESTS AND LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_GPU AND
+ NOT LIBC_TARGET_OS_IS_UEFI AND
+ NOT LIBC_TEST_BUILTINS_LIBRARY AND NOT LIBC_TEST_BUILTINS_TARGET)
+ execute_process(
+ COMMAND ${CMAKE_CXX_COMPILER} ${LIBC_COMPILE_OPTIONS_DEFAULT}
+ ${LIBC_TEST_LINK_OPTIONS_DEFAULT} -print-libgcc-file-name
----------------
quic-k wrote:
thanks, we now pass CMAKE_CXX_FLAGS so we pick the correct multilib
https://github.com/llvm/llvm-project/pull/217528
More information about the libc-commits
mailing list