mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Adds gnu11 (libstdc++ with new ABI) and libc++ values to stdlib feature. The value gnu was already in use by sun toolset, so this commit sets it as libstdc++ with old ABI. Adds support for that feature to gcc, clang-linux and clang-darwin toolsets. Refactors sun toolset to use stdlib feature via toolset flags.
30 lines
976 B
Plaintext
30 lines
976 B
Plaintext
# Copyright 2017 Rene Rivera
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
import feature ;
|
|
|
|
#| tag::doc[]
|
|
|
|
[[bbv2.builtin.features.stdlib]]`stdlib`::
|
|
*Allowed values*: `native`, `gnu`, `gnu11`, `libc++`, `sun-stlport`, `apache`.
|
|
+
|
|
Specifies C++ standard library to link to and in some cases the library ABI to
|
|
use:
|
|
+
|
|
`native`::: Use compiler's default.
|
|
`gnu`::: Use GNU Standard Library (a.k.a. pass:[libstdc++]) with the old ABI.
|
|
`gnu11`::: Use GNU Standard Library with the new ABI.
|
|
`libc++`::: Use LLVM pass:[libc++].
|
|
`sun-stlport`::: Use the STLport implementation of the standard library
|
|
provided with the Solaris Studio compiler.
|
|
`apache`::: Use the Apache stdcxx version 4 C++ standard library provided with
|
|
the Solaris Studio compiler.
|
|
|
|
|# # end::doc[]
|
|
|
|
feature.feature stdlib
|
|
: native gnu gnu11 libc++ sun-stlport apache
|
|
: propagated composite ;
|