Skip to content

Commit

Permalink
Rollup merge of rust-lang#73187 - mati865:bootstrap-cleanup, r=Mark-S…
Browse files Browse the repository at this point in the history
…imulacrum

Remove missed `cfg(bootstrap)`
  • Loading branch information
Dylan-DPC authored Jun 11, 2020
2 parents 1a50172 + 377c550 commit c8a2f53
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libunwind/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ fn main() {
println!("cargo:rustc-link-lib=gcc_pic");
} else if target.contains("pc-windows-gnu") {
// This is handled in the target spec with late_link_args_[static|dynamic]

// cfg!(bootstrap) doesn't work in build scripts
if env::var("RUSTC_STAGE").ok() == Some("0".to_string()) {
println!("cargo:rustc-link-lib=static-nobundle=gcc_eh");
println!("cargo:rustc-link-lib=static-nobundle=pthread");
}
} else if target.contains("uwp-windows-gnu") {
println!("cargo:rustc-link-lib=unwind");
} else if target.contains("fuchsia") {
Expand Down

0 comments on commit c8a2f53

Please sign in to comment.