Skip to content

Commit 7e58c24

Browse files
committed
[LLVM][CMake] Prefer to find libffi.a if present llvm#78779
Premerge land patch from Joseph Change-Id: I7dd70621ad9d2f96a07cbdc65ff0f6226c2a41fb
1 parent a316776 commit 7e58c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/FindFFI.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else()
3434
endif()
3535
endif()
3636

37-
find_library(FFI_LIBRARIES ffi PATHS ${FFI_LIBRARY_DIR})
37+
find_library(FFI_LIBRARIES NAMES libffi.a ffi PATHS ${FFI_LIBRARY_DIR})
3838

3939
if(FFI_LIBRARIES)
4040
include(CMakePushCheckState)

0 commit comments

Comments
 (0)