From: Fabian Grünbichler Date: Sat, 30 Nov 2024 11:24:03 +0000 (+0100) Subject: blake3: skip embedded C code, use pure implementation X-Git-Tag: archive/raspbian/1.91.1+dfsg1-1+rpi1~1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f11a2b0be7a3f72cb842ae55f2ed06c6003d5d6b;p=rustc.git blake3: skip embedded C code, use pure implementation Forwarded: not-needed Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic vendor Gbp-Pq: Name blake3-skip-embedded-C-code-use-pure-implementation.patch --- diff --git a/vendor/blake3-1.8.2/Cargo.toml b/vendor/blake3-1.8.2/Cargo.toml index a57d4598a6..ac0895ee8d 100644 --- a/vendor/blake3-1.8.2/Cargo.toml +++ b/vendor/blake3-1.8.2/Cargo.toml @@ -38,7 +38,7 @@ features = [ ] [features] -default = ["std"] +default = ["std", "pure"] digest = ["dep:digest"] mmap = [ "std", diff --git a/vendor/blake3-1.8.2/build.rs b/vendor/blake3-1.8.2/build.rs index 01b692fd7b..f38e0c230c 100644 --- a/vendor/blake3-1.8.2/build.rs +++ b/vendor/blake3-1.8.2/build.rs @@ -369,11 +369,13 @@ fn main() -> Result<(), Box> { println!("cargo:rerun-if-env-changed=CFLAGS"); // Ditto for source files, though these shouldn't change as often. - for file in std::fs::read_dir("c")? { - println!( - "cargo:rerun-if-changed={}", - file?.path().to_str().expect("utf-8") - ); + if !is_pure() { + for file in std::fs::read_dir("c")? { + println!( + "cargo:rerun-if-changed={}", + file?.path().to_str().expect("utf-8") + ); + } } // When compiling with clang-cl for windows, it adds .asm files to the root