Bug 1460647 Move big-obj out of Developer_OPTIONS so local MinGW builds work r?Build draft
authorTom Ritter <tom@mozilla.com>
Fri, 04 May 2018 10:33:25 -0500
changeset 795902 7cc103c81c645a1d0290f7bd193e30733efd23b6
parent 795901 8830a942fdbdf818e5bc2dae4a24212d33786ad8
child 795903 624a437e873422b36e40059f2d0d99262841417c
push id110108
push userbmo:tom@mozilla.com
push dateWed, 16 May 2018 18:43:56 +0000
reviewersBuild
bugs1460647
milestone60.0.1
Bug 1460647 Move big-obj out of Developer_OPTIONS so local MinGW builds work r?Build MozReview-Commit-ID: KxfoVkO4pu8
build/autoconf/compiler-opts.m4
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -118,23 +118,24 @@ if test "$CLANG_CXX"; then
     ## from C.
     _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-unknown-warning-option -Wno-return-type-c-linkage"
 fi
 
 if test "$GNU_CC"; then
     if test -z "$DEVELOPER_OPTIONS"; then
         CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
         CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
+    fi
 
-        # For MinGW, we need big-obj otherwise we create too many sections in Unified builds
-        if test "${OS_ARCH}" = "WINNT"; then
-            CFLAGS="$CFLAGS -Wa,-mbig-obj"
-            CXXFLAGS="$CXXFLAGS -Wa,-mbig-obj"
-        fi
+    # For MinGW, we need big-obj otherwise we create too many sections in Unified builds
+    if test "${OS_ARCH}" = "WINNT"; then
+        CFLAGS="$CFLAGS -Wa,-mbig-obj"
+        CXXFLAGS="$CXXFLAGS -Wa,-mbig-obj"
     fi
+
     CFLAGS="$CFLAGS -fno-math-errno"
     CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
 fi
 
 dnl ========================================================
 dnl = Identical Code Folding
 dnl ========================================================