From 63f05a04bf5d11d10fd21f4b2855ef4735a374e7 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 2 Apr 2025 14:10:14 -0500 Subject: [PATCH] [LLVM] Only build the GPU loader utility if it has LLVM-libc Summary: There were some discussions about this being included by default. I need to fix this up and codify the use of LLVM libc inside of LLVM. For now, just turn it off unless the user requested the `libc` GPU stuff. This matches the old behavior. --- llvm/tools/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt index 9fe6f8c6b9c21..729797aa43f0b 100644 --- a/llvm/tools/CMakeLists.txt +++ b/llvm/tools/CMakeLists.txt @@ -9,7 +9,7 @@ # traversing each directory. create_llvm_tool_options() -if(NOT LLVM_COMPILER_IS_GCC_COMPATIBLE) +if(NOT LLVM_COMPILER_IS_GCC_COMPATIBLE OR NOT LLVM_LIBC_GPU_BUILD) set(LLVM_TOOL_LLVM_GPU_LOADER_BUILD OFF) endif()