Skip to content

Commit aca4980

Browse files
author
Paul Murphy
committed
Don't panic if WASI_SDK_PATH not set when detecting compiler
The fedora packaging builds the wasm sysroot outside of the rust build system. Not panicing seems consistent with the detection logic of other targets on failure.
1 parent 25cf7d1 commit aca4980

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/bootstrap/src/utils/cc_detect.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,7 @@ fn default_compiler(
221221
}
222222

223223
t if t.contains("-wasi") => {
224-
let root = build
225-
.wasi_sdk_path
226-
.as_ref()
227-
.expect("WASI_SDK_PATH mut be configured for a -wasi target");
224+
let root = build.wasi_sdk_path.as_ref()?;
228225
let compiler = match compiler {
229226
Language::C => format!("{t}-clang"),
230227
Language::CPlusPlus => format!("{t}-clang++"),

0 commit comments

Comments
 (0)