From f6617afcdd1c8d762cb2fd5af9ffdd99c9f64b58 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 13 Nov 2018 16:29:08 -0800 Subject: [PATCH] Remove the build time and directory from cranelift-codegen-meta's output. This makes its output nondeterministic, making it friendier for compilation caching tools. --- lib/codegen/build.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index f5dc654273..1faedddd06 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -24,11 +24,7 @@ use meta::isa::Isa; use std::env; use std::process; -use std::time::Instant; - fn main() { - let start_time = Instant::now(); - let out_dir = env::var("OUT_DIR").expect("The OUT_DIR environment variable must be set"); let target_triple = env::var("TARGET").expect("The TARGET environment variable must be set"); let cranelift_targets = env::var("CRANELIFT_TARGETS").ok(); @@ -96,15 +92,6 @@ fn main() { process::exit(1); } } - - println!( - "cargo:warning=Cranelift meta-build step took {:?}", - Instant::now() - start_time - ); - println!( - "cargo:warning=Meta-build script generated files in {}", - out_dir - ); } fn identify_python() -> &'static str {