Changeset 161333 in webkit


Ignore:
Timestamp:
Jan 6, 2014 12:56:46 AM (10 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Use libc++ for C++11 on darwin
https://bugs.webkit.org/show_bug.cgi?id=126325

Reviewed by Martin Robinson.

  • Source/autotools/SetupCompilerFlags.m4: Don't default to libstdc++ when compiling with Clang.

Instead, the compiler should determine itself what standard library to use, except on Darwin,
where libc++ should be enforced. The standard library of user's choosing can still be enforced
through the CXXFLAGS environment variable.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r161325 r161333  
     12014-01-06  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK] Use libc++ for C++11 on darwin
     4        https://bugs.webkit.org/show_bug.cgi?id=126325
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Source/autotools/SetupCompilerFlags.m4: Don't default to libstdc++ when compiling with Clang.
     9        Instead, the compiler should determine itself what standard library to use, except on Darwin,
     10        where libc++ should be enforced. The standard library of user's choosing can still be enforced
     11        through the CXXFLAGS environment variable.
     12
    1132014-01-05  Martin Robinson  <mrobinson@igalia.com>
    214
  • trunk/Source/autotools/SetupCompilerFlags.m4

    r160538 r161333  
    99fi
    1010
    11 # libstdc++ is at the moment the only option as the C++ standard library when compiling with Clang.
    1211# Suppress unused arguments warnings for C++ files as well.
    1312if test "$cxx_compiler" = "clang++"; then
    14     CXXFLAGS="$CXXFLAGS -stdlib=libstdc++ -Qunused-arguments"
     13    CXXFLAGS="$CXXFLAGS -Qunused-arguments"
     14
     15    # Default to libc++ as the standard library on Darwin, if it isn't already enforced through CXXFLAGS.
     16    if test "$os_darwin" = "yes"; then
     17        AS_CASE([$CXXFLAGS], [*-stdlib=*], [], [CXXFLAGS="$CXXFLAGS -stdlib=libc++"])
     18    fi
    1519fi
    1620
Note: See TracChangeset for help on using the changeset viewer.