summaryrefslogtreecommitdiff
path: root/configure.host
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2017-03-19 07:33:39 -0400
committerAnthony Green <green@moxielogic.com>2017-03-19 07:33:39 -0400
commit69963d39ab7d7f201b4597ed7a24cf438e0a34bf (patch)
tree7520b8dcbd056effed2d9c9f0b4ccce3aff5d962 /configure.host
parent073bc9d50c1ce753735944e4228d9a401e964306 (diff)
downloadlibffi-69963d39ab7d7f201b4597ed7a24cf438e0a34bf.tar.gz
We don't support 32-bit builds with the Microsoft toolchain
Diffstat (limited to 'configure.host')
-rw-r--r--configure.host12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.host b/configure.host
index 36ffbb8..4062a48 100644
--- a/configure.host
+++ b/configure.host
@@ -64,8 +64,8 @@ case "${host}" in
TARGET=X86_FREEBSD; TARGETDIR=x86
;;
- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \
- | x86_64-*-cygwin* | x86_64-*-mingw* | x86_64-*-winnt* )
+ i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \
+ | x86_64-*-cygwin* | x86_64-*-mingw* | x86_64-*-win* )
TARGETDIR=x86
if test $ac_cv_sizeof_size_t = 4; then
TARGET=X86_WIN32
@@ -73,7 +73,13 @@ case "${host}" in
TARGET=X86_WIN64
fi
if test "${ax_cv_c_compiler_vendor}" = "microsoft"; then
- MSVC=1
+ 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