[libc-commits] [libc] [libc] Fix tests' linking flags accidentally modified by #147931. (PR #149453)
via libc-commits
libc-commits at lists.llvm.org
Fri Jul 18 06:56:44 PDT 2025
================
@@ -599,17 +601,19 @@ function(add_integration_test test_name)
set(link_options
-nolibc
-nostartfiles
- -static
+ -nostdlib
${LIBC_LINK_OPTIONS_DEFAULT}
${LIBC_TEST_LINK_OPTIONS_DEFAULT}
)
target_link_options(${fq_build_target_name} PRIVATE ${link_options})
+ list(APPEND link_libraries ${LIBGCC_S_LOCATION})
endif()
target_link_libraries(
${fq_build_target_name}
${fq_target_name}.__libc__
libc.startup.${LIBC_TARGET_OS}.crt1
libc.test.IntegrationTest.test
+ ${link_libraries}
----------------
lntue wrote:
I've updated the linking order of integration tests to be the same as hermetic tests.
https://github.com/llvm/llvm-project/pull/149453
More information about the libc-commits
mailing list