You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// There seems to be a bug with clang-cl where using
// `/clang:-xassembler-with-cpp` is apparently accepted (ie no warnings
// about unused/unknown arguments), but results in the same exact error
// as if the flag was not present, so instead we take advantage of the
// fact that we're not actually compiling any C/C++ code, only assembling
// and can just use clang directly.
if cfg
.get_compiler()
.path()
.file_name()
.and_then(|f| f.to_str())
.map(|fname| fname.contains("clang-cl"))
.unwrap_or(false)
{
cfg.compiler("clang");
}
is the relevant section here.
Alas clang-cl does not appear to support MASM, so we can't just use the MSVC files, and the regular gnu ones require the preprocessor. Though I guess we can just inline the definitions for those particular files that are affected?
Error from Rust's build error:
Probably caused by e1dc224
The text was updated successfully, but these errors were encountered: