Bug 1193467: Allow SSE2 on clang-cl builds. r=glandium

This commit is contained in:
David Major 2015-08-18 19:29:30 -04:00
parent 073ee0e64c
commit 377441463e
2 changed files with 6 additions and 2 deletions

View File

@ -2251,8 +2251,10 @@ ia64*-hpux*)
_DEFINES_CXXFLAGS='-FI $(DEPTH)/dist/include/mozilla-config.h -DMOZILLA_CLIENT'
CFLAGS="$CFLAGS -W3 -Gy"
CXXFLAGS="$CXXFLAGS -W3 -Gy"
if test "$CPU_ARCH" = "x86"; then
if test "$CPU_ARCH" = "x86" -a -z "$CLANG_CL"; then
dnl VS2012+ defaults to -arch:SSE2.
dnl Clang-cl gets confused by -arch:IA32, so don't add it.
dnl (See https://llvm.org/bugs/show_bug.cgi?id=24335)
CFLAGS="$CFLAGS -arch:IA32"
CXXFLAGS="$CXXFLAGS -arch:IA32"
fi

View File

@ -1741,8 +1741,10 @@ ia64*-hpux*)
_DEFINES_CXXFLAGS='-FI $(DEPTH)/js/src/js-confdefs.h -DMOZILLA_CLIENT'
CFLAGS="$CFLAGS -W3 -Gy"
CXXFLAGS="$CXXFLAGS -W3 -Gy"
if test "$CPU_ARCH" = "x86"; then
if test "$CPU_ARCH" = "x86" -a -z "$CLANG_CL"; then
dnl VS2012+ defaults to -arch:SSE2.
dnl Clang-cl gets confused by -arch:IA32, so don't add it.
dnl (See https://llvm.org/bugs/show_bug.cgi?id=24335)
CFLAGS="$CFLAGS -arch:IA32"
CXXFLAGS="$CXXFLAGS -arch:IA32"
fi