Bug 1032520 - Do not pass -RELEASE to clang-cl for non-developer builds; r=glandium
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 02 Jul 2014 10:29:33 -0400
changeset 191912 df2d52a1ac2990799fd0758ed296b8840415262c
parent 191911 219b6b2a4a29298988a0eeecb2eba9734c1917d4
child 191913 5fc1d45eccc6490ec7671f1d6804ba4e65c71de4
push id27068
push userkwierso@gmail.com
push dateWed, 02 Jul 2014 23:31:32 +0000
treeherdermozilla-central@ff731ea82e4d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1032520
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1032520 - Do not pass -RELEASE to clang-cl for non-developer builds; r=glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2148,19 +2148,19 @@ ia64*-hpux*)
         WARNINGS_AS_ERRORS='-WX'
         MOZ_OPTIMIZE_FLAGS='-O1 -Oi'
         MOZ_FIX_LINK_PATHS=
         MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
         # Disable these flags on clang-cl since it doesn't ignore unknown arguments by default, and
         # autoconf insists on passing $LDFLAGS to the compiler.
         if test -z "$CLANG_CL"; then
             LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE -NXCOMPAT"
-        fi
-        if test -z "$DEVELOPER_OPTIONS"; then
-            LDFLAGS="$LDFLAGS -RELEASE"
+            if test -z "$DEVELOPER_OPTIONS"; then
+                LDFLAGS="$LDFLAGS -RELEASE"
+            fi
         fi
         dnl For profile-guided optimization
         PROFILE_GEN_CFLAGS="-GL"
         PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
         dnl XXX: PGO builds can fail with warnings treated as errors,
         dnl specifically "no profile data available" appears to be
         dnl treated as an error sometimes. This might be a consequence
         dnl of using WARNINGS_AS_ERRORS in some modules, combined