[llvm] 5e0844a - [llvm] Pass FFI CMake options through to runtimes (for offload) (#118807)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 19:24:31 PST 2024
Author: Michał Górny
Date: 2024-12-06T03:24:28Z
New Revision: 5e0844a969a10c1d99ce809c69f17383389c48d1
URL: https://github.com/llvm/llvm-project/commit/5e0844a969a10c1d99ce809c69f17383389c48d1
DIFF: https://github.com/llvm/llvm-project/commit/5e0844a969a10c1d99ce809c69f17383389c48d1.diff
LOG: [llvm] Pass FFI CMake options through to runtimes (for offload) (#118807)
Pass the FFI-related CMake options through to runtimes, since offload is
building against libffi. This is needed when the system requires custom
`LIBFFI_INCLUDE` to build (e.g. on Gentoo where the headers are
installed to `/usr/lib*/libffi/include`).
Added:
Modified:
llvm/runtimes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 40fdb14e813332..70e85c123e4127 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -277,6 +277,7 @@ function(runtime_default_target)
PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
LLVM_USE_LINKER
CUDA # For runtimes that may look for the CUDA SDK (libc, offload)
+ FFI # offload uses libffi
${ARG_PREFIXES}
EXTRA_TARGETS ${extra_targets}
${test_targets}
More information about the llvm-commits
mailing list