Skip to content

Conversation

liranringel
Copy link
Contributor

@liranringel liranringel commented May 11, 2017

Will help to resolve rust-lang/rust#40246

src/lib.rs Outdated
@@ -232,13 +242,15 @@ impl Config {
.debug(false)
.target(&target)
.host(&host)
.static_crt(self.static_crt.unwrap_or(false))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For maximal safety to trigger the None fallback logic in gcc-rs, could this only be configured if static_crt is explicitly set in cmake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right!

src/lib.rs Outdated
cxx_cfg.static_crt(static_crt);
}

let c_compiler = gcc::Config::new().get_compiler();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be using c_cfg and cxx_cfg from above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed that

@alexcrichton alexcrichton merged commit 6c3a4da into rust-lang:master May 12, 2017
@alexcrichton
Copy link
Member

Excellent! I'll make a release now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

overriding '/MT' with '/MD'
2 participants