[llvm] [runtimes] Pass-through CLANG_RESOURCE_DIR to cmake invocations (PR #73185)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 16:12:18 PST 2023
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/73185
compiler-rt and libomp need access to this variable in order to install their libraries and headers to the path that clang expects.
>From 8eedf5da6c6730df30463141a4ea5af2771572da Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Thu, 23 Nov 2023 00:02:30 +0000
Subject: [PATCH] [runtimes] Pass-through CLANG_RESOURCE_DIR to cmake
invocations
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 a464c6c43af7b9c..d3b772e519affa1 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)
More information about the llvm-commits
mailing list