Skip to content

Commit

Permalink
Reconfigure libffi headers (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmon authored and zooba committed Mar 7, 2019
1 parent 8ba2b2c commit ed22026
Show file tree
Hide file tree
Showing 6 changed files with 739 additions and 48 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -36,3 +36,6 @@ build_*/
darwin_*/
src/arm/trampoline.S
**/texinfo.tex

x86_64-w64-cygwin
i686-pc-cygwin
12 changes: 5 additions & 7 deletions configure.host
Expand Up @@ -74,12 +74,6 @@ case "${host}" in
fi
if test "${ax_cv_c_compiler_vendor}" = "microsoft"; then
MSVC=1
if test $ac_cv_sizeof_size_t = 4; then
# libffi does not support microsoft tools for 32-bit windows
# hosts. Try porting src/x86/sysv.S to intel assembly
# format.
UNSUPPORTED=1
fi
fi
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
Expand Down Expand Up @@ -265,7 +259,11 @@ case "${TARGET}" in
SOURCES="ffi.c ffi_sysv.c sysv.S ppc_closure.S"
;;
X86 | X86_DARWIN | X86_FREEBSD | X86_WIN32)
SOURCES="ffi.c sysv.S"
if test "$MSVC" = 1; then
SOURCES="ffi.c sysv_intel.S"
else
SOURCES="ffi.c sysv.S"
fi
;;
X86_64)
if test x"$TARGET_X32" = xyes; then
Expand Down

0 comments on commit ed22026

Please sign in to comment.