[all-commits] [llvm/llvm-project] b689b4: [LLVM][CMake] Add ffi_static target for the FFI st...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Jan 22 05:27:18 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b689b4fe55103a04eac847964e126b6048b89ae0
      https://github.com/llvm/llvm-project/commit/b689b4fe55103a04eac847964e126b6048b89ae0
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-01-22 (Mon, 22 Jan 2024)

  Changed paths:
    M llvm/cmake/modules/FindFFI.cmake
    M openmp/libomptarget/plugins-nextgen/CMakeLists.txt

  Log Message:
  -----------
  [LLVM][CMake] Add ffi_static target for the FFI static library (#78779)

Summary:
This patch is an attempt to make the `find_package(FFI)` support in LLVM
prefer to provide the static library version if present. This is
currently
an optional library for building `libffi`, and its presence implies that
it should likely be used. This patch is an attempt to fix some problems
observed with testing programs linked against `libffi` on many different
systems that could have conflicting paths. Linking it statically
prevents this.

This patch adds the `ffi_static` target for this library.




More information about the All-commits mailing list