Skip to content

Commit

Permalink
Make get_cpp_link_stdlib public, and fix two doc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SallySoul committed May 14, 2021
1 parent 608ad0c commit afc4972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ impl Build {
/// Set the standard library to link against when compiling with C++
/// support.
///
/// See [`get_cpp_link_stdlib`](cc::Build::get_cpp_link_stdlib) documentation
/// See [`get_cpp_link_stdlib`](Build::get_cpp_link_stdlib) documentation
/// for the default value.
/// If the `CXXSTDLIB` environment variable is set, its value will
/// override the default value, but not the value explicitly set by calling
Expand Down Expand Up @@ -2282,11 +2282,11 @@ impl Build {
}

/// Returns the C++ standard library:
/// 1. If [cpp_link_stdlib](cc::Build::cpp_link_stdlib) is set, uses its value.
/// 1. If [cpp_link_stdlib](Build::cpp_link_stdlib) is set, uses its value.
/// 2. Else if the `CXXSTDLIB` environment variable is set, uses its value.
/// 3. Else the default is `libc++` for OS X and BSDs, `libc++_shared` for Android,
/// `None` for MSVC and `libstdc++` for anything else.
fn get_cpp_link_stdlib(&self) -> Result<Option<String>, Error> {
pub fn get_cpp_link_stdlib(&self) -> Result<Option<String>, Error> {
match self.cpp_link_stdlib.clone() {
Some(s) => Ok(s),
None => {
Expand Down

0 comments on commit afc4972

Please sign in to comment.