From 3edac6153e7f6a66e6e05a4b4dd8625d98533c13 Mon Sep 17 00:00:00 2001 From: Ignacy Date: Wed, 22 Jan 2025 13:40:37 +0100 Subject: [PATCH] integration-test: allow llvm-objcopy env override Allows integration tests to run where llvm-objcopy is versioned. Closes: https://github.com/aya-rs/aya/issues/1142 --- test/integration-test/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-test/build.rs b/test/integration-test/build.rs index d7ae6ff0..76164357 100644 --- a/test/integration-test/build.rs +++ b/test/integration-test/build.rs @@ -165,7 +165,7 @@ fn main() -> Result<()> { output.push(dst); exec( // NB: objcopy doesn't support reading from stdin, so we have to use llvm-objcopy. - Command::new("llvm-objcopy") + Command::new(env::var_os("LLVM_OBJCOPY").unwrap_or("llvm-objcopy".into())) .arg("--dump-section") .arg(output) .arg("-")