Skip to content

Commit 3349ef3

Browse files
committed
[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.
1 parent a1e041b commit 3349ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# traversing each directory.
1010
create_llvm_tool_options()
1111

12-
if(NOT LLVM_COMPILER_IS_GCC_COMPATIBLE)
12+
if(NOT LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT LLVM_LIBC_GPU_BUILD)
1313
set(LLVM_TOOL_LLVM_GPU_LOADER_BUILD OFF)
1414
endif()
1515

0 commit comments

Comments
 (0)