diff --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake index 82e2ccf15f06d4..3a6e0b8e3fcf90 100644 --- a/libc/cmake/modules/LLVMLibCTestRules.cmake +++ b/libc/cmake/modules/LLVMLibCTestRules.cmake @@ -525,7 +525,7 @@ function(add_integration_test test_name) --target=${LIBC_GPU_TARGET_TRIPLE}) endif() - target_link_options(${fq_build_target_name} PRIVATE -nostdlib -static) + target_link_options(${fq_build_target_name} PRIVATE -nolibc -nostartfiles -nostdlib++ -static) target_link_libraries( ${fq_build_target_name} # The NVIDIA 'nvlink' linker does not currently support static libraries.