From 90dbe22a28785963826c8b9aff93d56eae14c9d4 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sat, 1 Jun 2024 11:14:14 +0000 Subject: [PATCH] use rustc-dep-of-std in panic_unwind Wihout it, std keeps rebuiling when unchanged. But we could use `--keep-stage=1` to make it not rebuild. --- panic_unwind/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panic_unwind/Cargo.toml b/panic_unwind/Cargo.toml index dce2da3164440..f830808d19648 100644 --- a/panic_unwind/Cargo.toml +++ b/panic_unwind/Cargo.toml @@ -16,7 +16,7 @@ alloc = { path = "../alloc" } core = { path = "../core" } unwind = { path = "../unwind" } compiler_builtins = "0.1.0" -cfg-if = "1.0" +cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] } [target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies] libc = { version = "0.2", default-features = false }