Skip to content

Commit 2f98ff7

Browse files
[libc] Update integration test's linking options (#67158)
This patch set the integration test's linking options to be the same one used in the hermetic tests. In particular, by removing -nostdlib the tests are linked with libgcc/compiler-rt and this fixes an issue undefined reference to __udivdi3 and __umoddi3 in rv32.
1 parent 487c784 commit 2f98ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ function(add_integration_test test_name)
525525
--target=${LIBC_GPU_TARGET_TRIPLE})
526526
endif()
527527

528-
target_link_options(${fq_build_target_name} PRIVATE -nostdlib -static)
528+
target_link_options(${fq_build_target_name} PRIVATE -nolibc -nostartfiles -nostdlib++ -static)
529529
target_link_libraries(
530530
${fq_build_target_name}
531531
# The NVIDIA 'nvlink' linker does not currently support static libraries.

0 commit comments

Comments
 (0)