Skip to content

Explicitly set static crt#31

Merged
alexcrichton merged 3 commits into
rust-lang:masterfrom
liranringel:explicitly-set-static-crt
May 12, 2017
Merged

Explicitly set static crt#31
alexcrichton merged 3 commits into
rust-lang:masterfrom
liranringel:explicitly-set-static-crt

Conversation

@liranringel

@liranringel liranringel commented May 11, 2017

Copy link
Copy Markdown
Contributor

Will help to resolve rust-lang/rust#40246

Comment thread src/lib.rs Outdated
.debug(false)
.target(&target)
.host(&host)
.static_crt(self.static_crt.unwrap_or(false))

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh right!

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

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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