Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
[lucet-spectest] respect LD environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
valpackett committed May 16, 2020
1 parent 9dd2644 commit 0f59f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lucet-spectest/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl ScriptEnv {
.write(&objfile_path)
.map_err(ScriptError::CodegenError)?;

let mut cmd_ld = Command::new("ld");
let mut cmd_ld = Command::new(std::env::var("LD").unwrap_or("ld".to_string()));
cmd_ld.arg(objfile_path.clone());
cmd_ld.arg("-shared");
cmd_ld.arg("-o");
Expand Down

0 comments on commit 0f59f76

Please sign in to comment.