Skip to content

Commit

Permalink
Export generic instances from libstd.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Jan 30, 2020
1 parent c4071d0 commit 73e77a7
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 73e77a7

Please sign in to comment.