Skip to content

Commit 2e838c8

Browse files
authored
[runtimes] Pass-through CLANG_RESOURCE_DIR to cmake invocations (#73185)
compiler-rt and libomp need access to this variable in order to install their libraries and headers to the path that clang expects.
1 parent f35c0f2 commit 2e838c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# similar although simpler functionality. We should figure out how to merge
44
# the two files.
55

6-
set(COMMON_CMAKE_ARGS "-DHAVE_LLVM_LIT=ON")
6+
set(COMMON_CMAKE_ARGS "-DHAVE_LLVM_LIT=ON;-DCLANG_RESOURCE_DIR=${CLANG_RESOURCE_DIR}")
77
foreach(proj ${LLVM_ENABLE_RUNTIMES})
88
set(proj_dir "${CMAKE_CURRENT_SOURCE_DIR}/../../${proj}")
99
if(IS_DIRECTORY ${proj_dir} AND EXISTS ${proj_dir}/CMakeLists.txt)

0 commit comments

Comments
 (0)