Skip to content

Commit 5e0844a

Browse files
authored
[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`).
1 parent 548678e commit 5e0844a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ function(runtime_default_target)
277277
PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
278278
LLVM_USE_LINKER
279279
CUDA # For runtimes that may look for the CUDA SDK (libc, offload)
280+
FFI # offload uses libffi
280281
${ARG_PREFIXES}
281282
EXTRA_TARGETS ${extra_targets}
282283
${test_targets}

0 commit comments

Comments
 (0)