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 25cf7d1 commit 9bdd3b0Copy full SHA for 9bdd3b0
src/bootstrap/src/utils/cc_detect.rs
@@ -221,10 +221,15 @@ fn default_compiler(
221
}
222
223
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");
+ let root = if let Some(path) = build.wasi_sdk_path.as_ref() {
+ path
+ } else {
+ if build.config.is_running_on_ci {
228
+ panic!("ERROR: WASI_SDK_PATH must be configured for a -wasi target on CI");
229
+ }
230
+ println!("WARNING: WASI_SDK_PATH not set, using default cc/cxx compiler");
231
+ return None;
232
+ };
233
let compiler = match compiler {
234
Language::C => format!("{t}-clang"),
235
Language::CPlusPlus => format!("{t}-clang++"),
0 commit comments