[libc-commits] [libc] [llvm] [libc] Remove special full build handling for GPU (PR #128572)
via libc-commits
libc-commits at lists.llvm.org
Mon Feb 24 13:31:50 PST 2025
================
@@ -128,7 +128,13 @@ else()
endif()
endif()
-option(LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" OFF)
+# Some targets can only support the full build.
+set(default_to_full_build OFF)
+if(LIBC_TARGET_OS_IS_GPU)
+ set(default_to_full_build ON)
+endif()
+
+option(LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" ${default_to_full_build})
----------------
lntue wrote:
I'd prefer to just message that default to full build mode with `LIBC_TARGET_OS_IS_GPU` and then overwrite it, so that we don't have to introduce extra variable.
https://github.com/llvm/llvm-project/pull/128572
More information about the libc-commits
mailing list