Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cpp_build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,15 @@ impl Config {
self
}

/// Configures whether the /MT flag or the /MD flag will be passed to msvc
/// build tools.
///
/// This option defaults to `false`, and affect only msvc targets.
pub fn static_crt(&mut self, static_crt: bool) -> &mut Config {
self.cc.static_crt(static_crt);
self
}

/// Extracts `cpp` declarations from the passed-in crate root, and builds
/// the associated static library to be linked in to the final binary.
///
Expand Down
Loading