-
Notifications
You must be signed in to change notification settings - Fork 129
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
Explicitly set static crt #31
Explicitly set static crt #31
Conversation
src/lib.rs
Outdated
@@ -232,13 +242,15 @@ impl Config { | |||
.debug(false) | |||
.target(&target) | |||
.host(&host) | |||
.static_crt(self.static_crt.unwrap_or(false)) |
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.
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?
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.
Oh right!
src/lib.rs
Outdated
cxx_cfg.static_crt(static_crt); | ||
} | ||
|
||
let c_compiler = gcc::Config::new().get_compiler(); |
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.
Shouldn't this be using c_cfg
and cxx_cfg
from above?
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.
Oops, fixed that
Excellent! I'll make a release now |
Will help to resolve rust-lang/rust#40246