chore: print out full compiler arguments ran when it fails

This commit is contained in:
Amaan Qureshi 2024-02-14 13:09:40 -05:00
parent e8a818d0b9
commit d989b26587

View file

@ -566,9 +566,9 @@ impl Loader {
command.arg("-xc").arg(parser_path);
}
let output = command
.output()
.with_context(|| "Failed to execute C compiler")?;
let output = command.output().with_context(|| {
format!("Failed to execute the C compiler with the following command:\n{command:?}")
})?;
lock_file.unlock()?;
fs::remove_file(lock_path)?;