[libc-commits] [libc] [llvm] [libc] Remove special full build handling for GPU (PR #128572)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Feb 24 13:39:00 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})
----------------
jhuber6 wrote:
I would've preferred allowing the user to override the default behavior, but I guess I could make this change and then also remove the static check elsewhere.
https://github.com/llvm/llvm-project/pull/128572
More information about the libc-commits
mailing list