[libc-commits] [PATCH] D157444: [libc] Make add_libc_unittest compile with -ffreestanding

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Aug 9 00:32:29 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6632b2584159: [libc] Make add_libc_unittest compile with -ffreestanding (authored by gchatelet).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157444/new/

https://reviews.llvm.org/D157444

Files:
  libc/cmake/modules/LLVMLibCTestRules.cmake


Index: libc/cmake/modules/LLVMLibCTestRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCTestRules.cmake
+++ libc/cmake/modules/LLVMLibCTestRules.cmake
@@ -152,7 +152,7 @@
   )
   target_compile_options(
     ${fq_build_target_name}
-    PRIVATE -fpie ${LIBC_COMPILE_OPTIONS_DEFAULT}
+    PRIVATE -fpie -ffreestanding ${LIBC_COMPILE_OPTIONS_DEFAULT}
   )
   if(LIBC_UNITTEST_COMPILE_OPTIONS)
     target_compile_options(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157444.548491.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230809/c9508a87/attachment.bin>


More information about the libc-commits mailing list