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
reviewable/pr1196/r1
Ignacy 2 months ago committed by Tamir Duberstein
parent 89aa638e05
commit 3edac6153e

@ -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("-")

Loading…
Cancel
Save