Bug 1460791 - Turn on -O2 for MinGW as it seems the bug causing problems is fixed r=dmajor a=jcristau
authorTom Ritter <tom@mozilla.com>
Mon, 26 Aug 2019 13:26:59 +0000
changeset 523516 1e5260c1256c65239aa8ef3dff2b7246e78c9a76
parent 523515 e0386b59767f59444810422d2087b8b1fed7035d
child 523517 521a40f7a7cb79547a993d14d79a34544d4b5f7e
push id278
push userarchaeopteryx@coole-files.de
push dateMon, 02 Sep 2019 14:16:07 +0000
treeherdermozilla-esr68@7da23977b6ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmajor, jcristau
bugs1460791
milestone68.2.0
Bug 1460791 - Turn on -O2 for MinGW as it seems the bug causing problems is fixed r=dmajor a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D43389
old-configure.in
--- a/old-configure.in
+++ b/old-configure.in
@@ -657,17 +657,17 @@ case "$target" in
         CXXFLAGS="$CXXFLAGS -mms-bitfields"
         DSO_LDOPTS='-shared'
         # Use temp file for windres (bug 213281)
         RCFLAGS='-O coff --use-temp-file'
         # mingw doesn't require kernel32, user32, and advapi32 explicitly
         LIBS="$LIBS -luuid -lusp10 -lgdi32 -lwinmm -lwsock32 -luserenv -lsecur32"
         MOZ_FIX_LINK_PATHS=
 
-        MOZ_OPTIMIZE_FLAGS="-O1"
+        MOZ_OPTIMIZE_FLAGS="-O2"
 
         WIN32_CONSOLE_EXE_LDFLAGS=-mconsole
         WIN32_GUI_EXE_LDFLAGS=-mwindows
 
         if test -z "$CLANG_CC"; then
             # Use static libgcc and libstdc++
             LDFLAGS="$LDFLAGS -static"