From 0eb22ef7703eee8504a6d68060addf905f9fbcf9 Mon Sep 17 00:00:00 2001 From: "Nichols A. Romero" Date: Sun, 27 Aug 2023 01:41:59 -0500 Subject: [PATCH] llvm: ensure runtimes set rpaths (#39641) Ensure that CMAKE_INSTALL_RPATH_USE_LINK_PATH is propagated to sub-make when building runtimes. --- var/spack/repos/builtin/packages/llvm/package.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index e8a013b249..16ab6177f7 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -914,7 +914,14 @@ def cmake_args(self): # Semicolon seperated list of runtimes to enable if runtimes: - cmake_args.append(define("LLVM_ENABLE_RUNTIMES", runtimes)) + cmake_args.extend( + [ + define("LLVM_ENABLE_RUNTIMES", runtimes), + define( + "RUNTIMES_CMAKE_ARGS", [define("CMAKE_INSTALL_RPATH_USE_LINK_PATH", True)] + ), + ] + ) return cmake_args