[libc-commits] [libc] [libc] Disable `-ffreestanding` and `-fno-builtin` on the GPU build (PR #97636)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Jul 3 14:21:02 PDT 2024
================
@@ -43,9 +43,11 @@ function(_get_common_compile_options output_var flags)
list(APPEND compile_options "-fpie")
if(LLVM_LIBC_FULL_BUILD)
+ # Only add -ffreestanding flag in non-GPU full build mode.
+ if(LIBC_TARGET_OS_IS_GPU)
----------------
jhuber6 wrote:
```suggestion
if(NOT LIBC_TARGET_OS_IS_GPU)
```
https://github.com/llvm/llvm-project/pull/97636
More information about the libc-commits
mailing list