Bug 654653 Some CXXFLAGS are missing for non GNU_CXX compiler r=glandium
authorGinn Chen <ginn.chen@oracle.com>
Wed, 04 May 2011 15:39:12 +0800
changeset 68938 3ff945bdace773d7299a94c6b5f4a0b377e059dd
parent 68937 e90bdd97d168d354a20c8439cc1dcfca602ab4cc
child 68939 d30b2e9c999a43ffa9abf7429a27432430813738
push id19807
push userginn.chen@sun.com
push dateWed, 04 May 2011 07:40:40 +0000
treeherdermozilla-central@3ff945bdace7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs654653
milestone6.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 654653 Some CXXFLAGS are missing for non GNU_CXX compiler r=glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2978,17 +2978,17 @@ AC_CACHE_CHECK(for usable char16_t (2 by
                      CONFIGURE_STATIC_ASSERT(sizeof((u"hello")[0]) == 2);
                      CONFIGURE_STATIC_ASSERT(sizeof(u'a') == 2);
                      CONFIGURE_STATIC_ASSERT(u'\xFFFF' > u'\x0')],
                     ac_cv_have_usable_char16_t="yes",
                     ac_cv_have_usable_char16_t="no")])
 if test "$ac_cv_have_usable_char16_t" = "yes"; then
     AC_DEFINE(HAVE_CPP_CHAR16_T)
     HAVE_CPP_CHAR16_T=1
-else
+elif test "$GNU_CXX"; then
     CXXFLAGS="$_SAVE_CXXFLAGS"
 fi
 
 dnl Check for usable wchar_t (2 bytes, unsigned)
 dnl (we really don't need the unsignedness check anymore)
 dnl ========================================================
 
 AC_CACHE_CHECK(for usable wchar_t (2 bytes, unsigned),