New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MSVC #70
Conversation
I tested this building glib-sys and it seems to work properly. |
src/lib.rs
Outdated
@@ -410,6 +393,10 @@ impl Config { | |||
if self.is_static(name) { | |||
cmd.arg("--static"); | |||
} | |||
let target = env::var("TARGET").unwrap_or_else(|_| String::new()); | |||
if target.contains("msvc") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not
if let Some(target) = env::var("TARGET") {
if target.contains("msvc") {
cmd.arg("--msvc-syntax");
}
}
or something with match and guards for the contains
?
One level of indentation more, but doesn't have the empty string, which seems a bit ugly to me
Thanks! |
@alexcrichton Thanks! Can you prepare a new release with that change? |
Sure thing, done! |
Fixes #59