Bug 883381 - SpiderMonkey does not yet support C++11; r=Waldo
authorTerrence Cole <terrence@mozilla.com>
Fri, 14 Jun 2013 14:24:10 -0700
changeset 146657 cd67ffb5ca47e98f48b4fbc5797a38472108ebef
parent 146656 a6d08264b017a6d80f79574f54aaa54165251afa
child 146658 d440635e1f1fc53d03716190cde81f3c1e03487a
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs883381
milestone24.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 883381 - SpiderMonkey does not yet support C++11; r=Waldo
js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2332,18 +2332,18 @@ else
     AC_MSG_RESULT(no)
 fi
 
 dnl Check whether we can use gcc's c++0x mode
 AC_LANG_CPLUSPLUS
 
 if test "$GNU_CXX"; then
     _SAVE_CXXFLAGS=$CXXFLAGS
-    CXXFLAGS="$CXXFLAGS -std=gnu++0x"
-    USE_CXX11=1
+    CXXFLAGS="$CXXFLAGS"
+    USE_CXX11=
 
     AC_CACHE_CHECK(for gcc c++0x headers bug without rtti,
         ac_cv_cxx0x_headers_bug,
         [AC_TRY_COMPILE([#include <memory>], [],
                         ac_cv_cxx0x_headers_bug="no",
                         ac_cv_cxx0x_headers_bug="yes")])
 
     if test "$CLANG_CXX" -a "$ac_cv_cxx0x_headers_bug" = "yes"; then