[libc-commits] [libc] 4293af5 - [libc] Fix full build check for the GPU build

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Dec 19 12:43:11 PST 2022


Author: Joseph Huber
Date: 2022-12-19T14:42:55-06:00
New Revision: 4293af5ebce1b97083d8abf7c3d93c1edce23cd1

URL: https://github.com/llvm/llvm-project/commit/4293af5ebce1b97083d8abf7c3d93c1edce23cd1
DIFF: https://github.com/llvm/llvm-project/commit/4293af5ebce1b97083d8abf7c3d93c1edce23cd1.diff

LOG: [libc] Fix full build check for the GPU build

Summary:
This condition should fire when the full build is set OFF instead of
when it is ON.

Added: 
    

Modified: 
    libc/cmake/modules/prepare_libc_gpu_build.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/prepare_libc_gpu_build.cmake b/libc/cmake/modules/prepare_libc_gpu_build.cmake
index 7d32af3069918..62090948f8d40 100644
--- a/libc/cmake/modules/prepare_libc_gpu_build.cmake
+++ b/libc/cmake/modules/prepare_libc_gpu_build.cmake
@@ -20,7 +20,7 @@ if(LIBC_TARGET_ARCHITECTURE_IS_GPU AND
                       "'${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}' "
                       " is not `Clang ${req_ver}.")
 endif()
-if(LLVM_LIBC_FULL_BUILD)
+if(NOT LLVM_LIBC_FULL_BUILD)
   message(FATAL_ERROR "LLVM_LIBC_FULL_BUILD must be enabled to build libc for "
                       "GPU.")
 endif()


        


More information about the libc-commits mailing list