Skip to content

Commit 2913404

Browse files
authored
Merge pull request #184 from smoelius/master
Expand `CARGO` environment variable at runtime
2 parents e508125 + d927992 commit 2913404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo-afl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ where
291291
I: IntoIterator<Item = S>,
292292
S: AsRef<OsStr>,
293293
{
294-
let cargo_path = env!("CARGO");
294+
let cargo_path = env::var("CARGO").expect("Could not determine `cargo` path");
295295

296296
// add some flags to sanitizers to make them work with Rust code
297297
let asan_options = env::var("ASAN_OPTIONS").unwrap_or_default();

0 commit comments

Comments
 (0)