llvm: ensure runtimes set rpaths (#39641)

Ensure that CMAKE_INSTALL_RPATH_USE_LINK_PATH is propagated to sub-make when building runtimes.
This commit is contained in:
Nichols A. Romero 2023-08-27 01:41:59 -05:00 committed by GitHub
parent 95f78440f1
commit 0eb22ef770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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