From 2e838c8437f8466455932c31e82474800056c712 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 28 Nov 2023 21:32:10 -0800 Subject: [PATCH] [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. --- llvm/runtimes/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index a464c6c43af7..d3b772e519af 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -3,7 +3,7 @@ # similar although simpler functionality. We should figure out how to merge # the two files. -set(COMMON_CMAKE_ARGS "-DHAVE_LLVM_LIT=ON") +set(COMMON_CMAKE_ARGS "-DHAVE_LLVM_LIT=ON;-DCLANG_RESOURCE_DIR=${CLANG_RESOURCE_DIR}") foreach(proj ${LLVM_ENABLE_RUNTIMES}) set(proj_dir "${CMAKE_CURRENT_SOURCE_DIR}/../../${proj}") if(IS_DIRECTORY ${proj_dir} AND EXISTS ${proj_dir}/CMakeLists.txt)