[LLVM] Only build the GPU loader utility if it has LLVM-libc (#134141)

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.
This commit is contained in:
Joseph Huber 2025-04-02 19:26:19 -05:00 committed by GitHub
parent b55bab2292
commit e5809f0172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()