Skip to content

Commit

Permalink
Merge pull request #16 from eisenhauer/LibFFIOnUnsupp
Browse files Browse the repository at this point in the history
Try to build libffi when not found on unsupported architectures
  • Loading branch information
eisenhauer authored Apr 16, 2020
2 parents dac6dfc + ee888ea commit fe7e5ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ find_package(LibFFI)
if(LIBFFI_FOUND)
message(STATUS "Enabling emulation")
set(EMULATION_POSSIBLE TRUE)
elseif(DILL_IGNORE_NATIVE)
elseif(DILL_IGNORE_NATIVE OR (NATIVE_ARCH STREQUAL "UNSUPPORTED"))
find_program (AUTOCONF autoconf)
if (AUTOCONF STREQUAL "AUTOCONF-NOTFOUND")
message(FATAL_ERROR "DILL_IGNORE_NATIVE set, but autoconf not found, so unable to build libffi")
find_program (AUTOMAKE automake)
if ((AUTOCONF STREQUAL "AUTOCONF-NOTFOUND") OR (AUTOMAKE STREQUAL "AUTOMAKE-NOTFOUND"))
message(FATAL_ERROR "DILL_IGNORE_NATIVE set or native architecture unsupported, but autoconf or automake not found, so unable to build libffi")
endif()
set(LIBFFI_INTERNAL ON)
message(STATUS "Using private copy of libffi")
Expand Down

0 comments on commit fe7e5ba

Please sign in to comment.