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.
1 parent f7b47d9 commit c98c058Copy full SHA for c98c058
src/lib.rs
@@ -1,6 +1,7 @@
1
use std::io::Command;
2
use std::io::process::InheritFd;
3
use std::default::Default;
4
+use std::borrow::ToOwned;
5
6
/// Extra configuration to pass to gcc.
7
pub struct Config {
@@ -16,11 +17,17 @@ pub struct Config {
16
17
18
impl Default for Config {
19
fn default() -> Config {
20
+ let mut flags = Vec::new();
21
+
22
+ if cfg!(target_os = "windows") {
23
+ flags.push("-mwin32".to_owned());
24
+ }
25
26
Config {
27
include_directories: Vec::new(),
28
definitions: Vec::new(),
29
objects: Vec::new(),
- flags: Vec::new(),
30
+ flags: flags,
31
}
32
33
0 commit comments