Skip to content

Commit

Permalink
Merge pull request #45 from eisenhauer/FFIAgain
Browse files Browse the repository at this point in the history
Don't look for FFI or try to build if NATIVE_ONLY is on
  • Loading branch information
eisenhauer authored Apr 4, 2024
2 parents ebc98c4 + 49fdad7 commit 2598741
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ endif()
if(LIBFFI_FOUND)
message(STATUS "Enabling emulation")
set(EMULATION_POSSIBLE TRUE)
elseif(DILL_IGNORE_NATIVE OR (NATIVE_ARCH STREQUAL "UNSUPPORTED"))
elseif((DILL_IGNORE_NATIVE OR (NATIVE_ARCH STREQUAL "UNSUPPORTED")) AND NOT DILL_NATIVE_ONLY)
find_program (AUTOCONF autoconf)
find_program (AUTOMAKE automake)
if ((AUTOCONF STREQUAL "AUTOCONF-NOTFOUND") OR (AUTOMAKE STREQUAL "AUTOMAKE-NOTFOUND"))
Expand Down Expand Up @@ -342,7 +342,6 @@ check_include_files(memory.h HAVE_MEMORY_H)
check_include_files(sys/mman.h HAVE_SYS_MMAN_H)
include(CheckSymbolExists)
check_symbol_exists(__clear_cache "" CLEAR_CACHE_DEFINED)
message(STATUS "Clear cache defined is ${CLEAR_CACHE_DEFINED}")

set(NO_DISASSEMBLER TRUE)
if(DILL_ENABLE_DISASSEMBLY)
Expand Down

0 comments on commit 2598741

Please sign in to comment.