@@ -844,8 +844,8 @@ impl Build {
844
844
/// The name of the C++ standard library to link is decided by:
845
845
/// 1. If [`cpp_link_stdlib`](Build::cpp_link_stdlib) is set, use its value.
846
846
/// 2. Else if the `CXXSTDLIB` environment variable is set, use its value.
847
- /// 3. Else the default is `libc ++` for OS X and BSDs, `libc ++_shared` for Android,
848
- /// `None` for MSVC and `libstdc ++` for anything else.
847
+ /// 3. Else the default is `c ++` for OS X and BSDs, `c ++_shared` for Android,
848
+ /// `None` for MSVC and `stdc ++` for anything else.
849
849
pub fn cpp ( & mut self , cpp : bool ) -> & mut Build {
850
850
self . cpp = cpp;
851
851
self
@@ -3201,8 +3201,8 @@ impl Build {
3201
3201
/// Returns the C++ standard library:
3202
3202
/// 1. If [`cpp_link_stdlib`](cc::Build::cpp_link_stdlib) is set, uses its value.
3203
3203
/// 2. Else if the `CXXSTDLIB` environment variable is set, uses its value.
3204
- /// 3. Else the default is `libc ++` for OS X and BSDs, `libc ++_shared` for Android,
3205
- /// `None` for MSVC and `libstdc ++` for anything else.
3204
+ /// 3. Else the default is `c ++` for OS X and BSDs, `c ++_shared` for Android,
3205
+ /// `None` for MSVC and `stdc ++` for anything else.
3206
3206
fn get_cpp_link_stdlib ( & self ) -> Result < Option < Cow < ' _ , Path > > , Error > {
3207
3207
match & self . cpp_link_stdlib {
3208
3208
Some ( s) => Ok ( s. as_deref ( ) . map ( Path :: new) . map ( Cow :: Borrowed ) ) ,
0 commit comments