Skip to content

Commit 6ea431c

Browse files
[LLVM] Fix llvm-gpu-loader use in standalone
1 parent 0175dce commit 6ea431c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/Modules/FindLibcCommonUtils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#===--------------------------------------------------------------------===//
88

99
if(NOT TARGET llvm-libc-common-utilities)
10-
set(libc_path ${CMAKE_CURRENT_LIST_DIR}/../../libc)
10+
set(libc_path ${LLVM_MAIN_SRC_DIR}/../libc)
1111
if (EXISTS ${libc_path} AND IS_DIRECTORY ${libc_path})
1212
add_library(llvm-libc-common-utilities INTERFACE)
1313
# TODO: Reorganize the libc shared section so that it can be included without

llvm/tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
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 OR NOT TARGET llvm-libc-common-utilities)
1313
set(LLVM_TOOL_LLVM_GPU_LOADER_BUILD OFF)
1414
endif()
1515

0 commit comments

Comments
 (0)