[libc-commits] [PATCH] D149683: [libc] Replace -nostdlib with -nolibc and -nostartfiles for hermetic test link.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue May 2 23:11:02 PDT 2023
sivachandra updated this revision to Diff 518977.
sivachandra added a comment.
Add -nostdlib++ also.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149683/new/
https://reviews.llvm.org/D149683
Files:
libc/cmake/modules/LLVMLibCTestRules.cmake
Index: libc/cmake/modules/LLVMLibCTestRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCTestRules.cmake
+++ libc/cmake/modules/LLVMLibCTestRules.cmake
@@ -658,7 +658,7 @@
target_compile_options(${fq_build_target_name}
PRIVATE ${LIBC_HERMETIC_TEST_COMPILE_OPTIONS} ${HERMETIC_TEST_COMPILE_OPTIONS})
- 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}
PRIVATE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149683.518977.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230503/cdf90c40/attachment.bin>
More information about the libc-commits
mailing list