Bug 1008192 - Don't try to use hidden visibility on mingw. r=glandium
authorJacek Caban <jacek@codeweavers.com>
Wed, 14 May 2014 13:06:33 +0200
changeset 183106 4fc15722412260548c46a0c38a90d3480d09ef5b
parent 183105 36277a66065c8dfed6138fcd21c4cf0cd4c3f0d6
child 183107 5cc6d67b1325ee712f8ba5b7d31f454ff9fbb730
push id26782
push userkwierso@gmail.com
push dateWed, 14 May 2014 21:22:05 +0000
treeherdermozilla-central@5d6041cee191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1008192
milestone32.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 1008192 - Don't try to use hidden visibility on mingw. r=glandium
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -2542,17 +2542,17 @@ AC_LANG_CPLUSPLUS
 
 MOZ_CXX11
 
 AC_LANG_C
 
 dnl Check for .hidden assembler directive and visibility attribute.
 dnl Borrowed from glibc configure.in
 dnl ===============================================================
-if test "$GNU_CC"; then
+if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
   AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
   AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
   if test -n "$gonkdir"; then
     visibility_target=Gonk
   else
     visibility_target=$OS_TARGET
   fi
   case "$visibility_target" in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2088,17 +2088,17 @@ fi
 
 AC_LANG_CPLUSPLUS
 
 MOZ_CXX11
 
 dnl Check for .hidden assembler directive and visibility attribute.
 dnl Borrowed from glibc configure.in
 dnl ===============================================================
-if test "$GNU_CC"; then
+if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
   AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
   AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
   if test -n "$gonkdir"; then
     visibility_target=Gonk
   else
     visibility_target=$OS_TARGET
   fi
   case "$visibility_target" in