Skip to content

Commit afc4972

Browse files
committed
Make get_cpp_link_stdlib public, and fix two doc warnings
1 parent 608ad0c commit afc4972

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ impl Build {
684684
/// Set the standard library to link against when compiling with C++
685685
/// support.
686686
///
687-
/// See [`get_cpp_link_stdlib`](cc::Build::get_cpp_link_stdlib) documentation
687+
/// See [`get_cpp_link_stdlib`](Build::get_cpp_link_stdlib) documentation
688688
/// for the default value.
689689
/// If the `CXXSTDLIB` environment variable is set, its value will
690690
/// override the default value, but not the value explicitly set by calling
@@ -2282,11 +2282,11 @@ impl Build {
22822282
}
22832283

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

0 commit comments

Comments
 (0)