We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
static_crt
1 parent 45f7b74 commit cc63bb0Copy full SHA for cc63bb0
cpp_build/src/lib.rs
@@ -601,6 +601,15 @@ impl Config {
601
self
602
}
603
604
+ /// Configures whether the /MT flag or the /MD flag will be passed to msvc
605
+ /// build tools.
606
+ ///
607
+ /// This option defaults to `false`, and affect only msvc targets.
608
+ pub fn static_crt(&mut self, static_crt: bool) -> &mut Config {
609
+ self.cc.static_crt(static_crt);
610
+ self
611
+ }
612
+
613
/// Extracts `cpp` declarations from the passed-in crate root, and builds
614
/// the associated static library to be linked in to the final binary.
615
///
0 commit comments