File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,8 @@ function(add_integration_test test_name)
571
571
target_compile_options (${fq_build_target_name} PRIVATE
572
572
${compile_options} ${INTEGRATION_TEST_COMPILE_OPTIONS} )
573
573
574
+ set (link_libraries "" )
575
+
574
576
if (LIBC_TARGET_ARCHITECTURE_IS_AMDGPU )
575
577
target_link_options (${fq_build_target_name} PRIVATE
576
578
${LIBC_COMPILE_OPTIONS_DEFAULT} ${INTEGRATION_TEST_COMPILE_OPTIONS}
@@ -599,17 +601,19 @@ function(add_integration_test test_name)
599
601
set (link_options
600
602
-nolibc
601
603
-nostartfiles
602
- -static
604
+ -nostdlib
603
605
${LIBC_LINK_OPTIONS_DEFAULT}
604
606
${LIBC_TEST_LINK_OPTIONS_DEFAULT}
605
607
)
606
608
target_link_options (${fq_build_target_name} PRIVATE ${link_options} )
609
+ list (APPEND link_libraries ${LIBGCC_S_LOCATION} )
607
610
endif ()
608
611
target_link_libraries (
609
612
${fq_build_target_name}
610
613
${fq_target_name} .__libc__
611
614
libc.startup.${LIBC_TARGET_OS}.crt1
612
615
libc.test.IntegrationTest.test
616
+ ${link_libraries}
613
617
)
614
618
add_dependencies (${fq_build_target_name}
615
619
libc.test.IntegrationTest.test
@@ -807,7 +811,7 @@ function(add_libc_hermetic test_name)
807
811
set (link_options
808
812
-nolibc
809
813
-nostartfiles
810
- -static
814
+ -nostdlib
811
815
${LIBC_LINK_OPTIONS_DEFAULT}
812
816
${LIBC_TEST_LINK_OPTIONS_DEFAULT}
813
817
)
You can’t perform that action at this time.
0 commit comments