We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c8afc commit 2430a85Copy full SHA for 2430a85
crates/test/src/c.rs
@@ -111,7 +111,14 @@ fn prepare(runner: &mut Runner<'_>, compiler: PathBuf) -> Result<()> {
111
super::write_if_different(&dir.join("test.c"), "int main() { return 0; }")?;
112
113
println!("Testing if `{}` works...", compiler.display());
114
- runner.run_command(Command::new(compiler).current_dir(&dir).arg("test.c"))?;
+ runner
115
+ .run_command(Command::new(&compiler).current_dir(&dir).arg("test.c"))
116
+ .inspect_err(|_| {
117
+ eprintln!(
118
+ "Error: failed to find `{}`. Hint: pass `--wasi-sdk-path` or set `WASI_SDK_PATH`",
119
+ compiler.display()
120
+ );
121
+ })?;
122
123
Ok(())
124
}
0 commit comments