mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
Revert "Invoke backtrace-rs
buildscript in std
buildscript"
This reverts commit 93677276bc
because it caused issues for projects building the standard
library with non-cargo build systems.
This commit is contained in:
parent
57ef889852
commit
49aa5a23ca
@ -5082,7 +5082,6 @@ version = "0.0.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"addr2line",
|
"addr2line",
|
||||||
"alloc",
|
"alloc",
|
||||||
"cc",
|
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"compiler_builtins",
|
"compiler_builtins",
|
||||||
"core",
|
"core",
|
||||||
|
@ -36,10 +36,6 @@ object = { version = "0.32.0", default-features = false, optional = true, featur
|
|||||||
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
|
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
|
||||||
rand_xorshift = "0.3.0"
|
rand_xorshift = "0.3.0"
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
# Dependency of the `backtrace` crate's build script
|
|
||||||
cc = "1.0.67"
|
|
||||||
|
|
||||||
[target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
|
[target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
|
||||||
dlmalloc = { version = "0.2.4", features = ['rustc-dep-of-std'] }
|
dlmalloc = { version = "0.2.4", features = ['rustc-dep-of-std'] }
|
||||||
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
// backtrace-rs requires a feature check on Android targets, so
|
|
||||||
// we need to run its build.rs as well.
|
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
#[path = "../backtrace/build.rs"]
|
|
||||||
mod backtrace_build_rs;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
let target = env::var("TARGET").expect("TARGET was not set");
|
let target = env::var("TARGET").expect("TARGET was not set");
|
||||||
@ -65,6 +59,4 @@ fn main() {
|
|||||||
}
|
}
|
||||||
println!("cargo:rustc-env=STD_ENV_ARCH={}", env::var("CARGO_CFG_TARGET_ARCH").unwrap());
|
println!("cargo:rustc-env=STD_ENV_ARCH={}", env::var("CARGO_CFG_TARGET_ARCH").unwrap());
|
||||||
println!("cargo:rustc-cfg=backtrace_in_libstd");
|
println!("cargo:rustc-cfg=backtrace_in_libstd");
|
||||||
|
|
||||||
backtrace_build_rs::main();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user