[llvm] 2e838c8 - [runtimes] Pass-through CLANG_RESOURCE_DIR to cmake invocations (#73185)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 21:32:14 PST 2023


Author: Tom Stellard
Date: 2023-11-28T21:32:10-08:00
New Revision: 2e838c8437f8466455932c31e82474800056c712

URL: https://github.com/llvm/llvm-project/commit/2e838c8437f8466455932c31e82474800056c712
DIFF: https://github.com/llvm/llvm-project/commit/2e838c8437f8466455932c31e82474800056c712.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/runtimes/CMakeLists.txt

Removed: 
    


################################################################################
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