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 e2d2926 commit 2a0fdefCopy full SHA for 2a0fdef
src/bootstrap/src/core/sanity.rs
@@ -333,9 +333,14 @@ than building it.
333
&& (build.config.optimized_compiler_builtins(*target)
334
|| build.config.rust_std_features.contains("compiler-builtins-c"))
335
{
336
- let is_clang = build.cc_tool(*target).is_like_clang();
337
- if !is_clang {
338
- panic!("only clang supports building c code for wasm targets");
+ let cc_tool = build.cc_tool(*target);
+ if !cc_tool.is_like_clang() {
+ panic!(
339
+ "Clang is required to build C code for Wasm targets, got `{}` instead\n\
340
+ this is because compiler-builtins is configured to build C source. Either \
341
+ ensure Clang is used, or adjust this configuration.",
342
+ cc_tool.path().display()
343
+ );
344
}
345
346
0 commit comments