[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:44:21 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:

Also because resetting a cache variable is a pain because you need to force it. Whereas this is just an extra normal variable. Do I really need to do it this way?

https://github.com/llvm/llvm-project/pull/128572


More information about the libc-commits mailing list