Skip to content

Commit d9a7d26

Browse files
committed
Bug 1043108: Remove -arch:IA32 from non-x86 builds. r=dmajor.
1 parent 26febc4 commit d9a7d26

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

configure.in

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,12 +1988,6 @@ tools are selected during the Xcode/Developer Tools installation.])
19881988
PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
19891989
PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE"
19901990

1991-
if test "$MSC_VER" -ge "1700"; then
1992-
dnl Visual C++ 2012 defaults to -arch:SSE2. Use -arch:IA32 to
1993-
dnl avoid requiring SSE2.
1994-
CFLAGS="$CFLAGS -arch:IA32"
1995-
fi
1996-
19971991
if test "$MSC_VER" -ge "1800"; then
19981992
dnl Visual C++ 2013 requires -FS when parallel building with
19991993
dnl make -jN. If not specified, compiler sometimes emits C1041
@@ -2087,6 +2081,11 @@ tools are selected during the Xcode/Developer Tools installation.])
20872081
AC_DEFINE(_AMD64_)
20882082
else
20892083
AC_DEFINE(_X86_)
2084+
if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then
2085+
dnl Visual C++ 2012 defaults to -arch:SSE2. Use -arch:IA32
2086+
dnl to avoid requiring SSE2.
2087+
CFLAGS="$CFLAGS -arch:IA32"
2088+
fi
20902089
fi
20912090
;;
20922091
x86_64)

0 commit comments

Comments
 (0)