Title: [165193] trunk
Revision
165193
Author
[email protected]
Date
2014-03-06 08:45:53 -0800 (Thu, 06 Mar 2014)

Log Message

[GTK][Autotools] Default to libc++ when compiling with Clang
https://bugs.webkit.org/show_bug.cgi?id=129798

Reviewed by Anders Carlsson.

* Source/autotools/SetupCompilerFlags.m4: Default to using libc++ when compiling with the Clang
compiler. This is still overridable if -stdlib=* flag was set through CXXFLAGS, in case people
would for some reason still prefer libstdc++ (i.e. on setups where a functional libc++ is not yet available).

Modified Paths

Diff

Modified: trunk/ChangeLog (165192 => 165193)


--- trunk/ChangeLog	2014-03-06 16:13:50 UTC (rev 165192)
+++ trunk/ChangeLog	2014-03-06 16:45:53 UTC (rev 165193)
@@ -1,3 +1,14 @@
+2014-03-06  Zan Dobersek  <[email protected]>
+
+        [GTK][Autotools] Default to libc++ when compiling with Clang
+        https://bugs.webkit.org/show_bug.cgi?id=129798
+
+        Reviewed by Anders Carlsson.
+
+        * Source/autotools/SetupCompilerFlags.m4: Default to using libc++ when compiling with the Clang
+        compiler. This is still overridable if -stdlib=* flag was set through CXXFLAGS, in case people
+        would for some reason still prefer libstdc++ (i.e. on setups where a functional libc++ is not yet available).
+
 2014-03-05  Martin Robinson  <[email protected]>
 
         [CMake] Ninja generator builds fail with "Argument list too long"

Modified: trunk/Source/autotools/SetupCompilerFlags.m4 (165192 => 165193)


--- trunk/Source/autotools/SetupCompilerFlags.m4	2014-03-06 16:13:50 UTC (rev 165192)
+++ trunk/Source/autotools/SetupCompilerFlags.m4	2014-03-06 16:45:53 UTC (rev 165193)
@@ -12,10 +12,9 @@
 if test "$cxx_compiler" = "clang++"; then
     CXXFLAGS="$CXXFLAGS -Qunused-arguments"
 
-    # Default to libc++ as the standard library on Darwin, if it isn't already enforced through CXXFLAGS.
-    if test "$os_darwin" = "yes"; then
-        AS_CASE([$CXXFLAGS], [*-stdlib=*], [], [CXXFLAGS="$CXXFLAGS -stdlib=libc++"])
-    fi
+    # Default to libc++ as the standard library to be used with Clang, if it isn't already enforced
+    # through CXXFLAGS (in case where some would still like to build using Clang and libstdc++).
+    AS_CASE([$CXXFLAGS], [*-stdlib=*], [], [CXXFLAGS="$CXXFLAGS -stdlib=libc++"])
 
     # If Clang will be using libstdc++ as the standard library, version >= 4.8.1 should be in use.
     AC_LANG_PUSH([C++])
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to