Skip to content

Commit

Permalink
Auto merge of #68673 - michaelwoerister:export-generics-from-std, r=<…
Browse files Browse the repository at this point in the history
…try>

[Experiment] Export generic instances from libstd.

This should resolve issue #64140. However it is unclear if there are detrimental effects. Let's test if there are performance improvements to be had.

r? @ghost
  • Loading branch information
bors committed Jan 30, 2020
2 parents 212b2c7 + 73e77a7 commit f8a2991
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,12 @@ impl<'a> Builder<'a> {
}

match mode {
Mode::Std | Mode::ToolBootstrap | Mode::ToolStd => {}
Mode::ToolBootstrap | Mode::ToolStd => {}
Mode::Std => {
if stage != 0 {
rustflags.arg("-Zshare-generics");
}
}
Mode::Rustc | Mode::Codegen | Mode::ToolRustc => {
// Build proc macros both for the host and the target
if target != compiler.host && cmd != "check" {
Expand Down

0 comments on commit f8a2991

Please sign in to comment.