Commit a862a3a0 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1747498 - Move SIMD flags to python configure. r=firefox-build-system-reviewers,mhentges

And because we don't support MSVC anymore, we can use the GCC-style
flags everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D134640
parent 6b5a53d8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2893,3 +2893,9 @@ def path_remappings(target, build_env, sysroot_path, windows_sdk_dir, vc_path):
                die(f"Cannot remap paths because {p} is an ancestor of {q}")

    return path_remappings


set_config("MMX_FLAGS", ["-mmmx"])
set_config("SSE_FLAGS", ["-msse"])
set_config("SSE2_FLAGS", ["-msse2"])
set_config("SSSE3_FLAGS", ["-mssse3"])
+0 −16
Original line number Diff line number Diff line
@@ -247,10 +247,6 @@ dnl ========================================================
dnl GNU specific defaults
dnl ========================================================
if test "$GNU_CC"; then
    MMX_FLAGS="-mmmx"
    SSE_FLAGS="-msse"
    SSE2_FLAGS="-msse2"
    SSSE3_FLAGS="-mssse3"
    CFLAGS="$CFLAGS -fno-strict-aliasing"

    if test "$OS_ARCH" != "WINNT" -o -z "$CLANG_CC"; then
@@ -526,15 +522,7 @@ case "$target" in
              CXXFLAGS="$CXXFLAGS -arch:SSE2"
            fi
            changequote([,])
            SSE_FLAGS="-arch:SSE"
            SSE2_FLAGS="-arch:SSE2"
            dnl MSVC allows the use of intrinsics without any flags
            dnl and doesn't have a separate arch for SSSE3
            SSSE3_FLAGS="-arch:SSE2"
        fi
        dnl clang-cl requires appropriate flags to enable SSSE3 support
        dnl on all architectures.
        SSSE3_FLAGS="-mssse3"
        fi
        dnl VS2013+ supports -Gw for better linker optimizations.
        dnl http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx
        dnl Disabled on ASan because it causes false-positive ODR violations.
@@ -709,10 +697,6 @@ if test -z "$MOZ_OPTIMIZE_FLAGS"; then
    MOZ_OPTIMIZE_FLAGS="-O"
fi

AC_SUBST_LIST(MMX_FLAGS)
AC_SUBST_LIST(SSE_FLAGS)
AC_SUBST_LIST(SSE2_FLAGS)
AC_SUBST_LIST(SSSE3_FLAGS)

AC_SUBST(MOZ_LINKER)
if test -n "$MOZ_LINKER"; then