Add comment about why Windows is using clang++

This commit is contained in:
Mark McCaskey
2020-10-12 16:25:40 -07:00
parent e430bbaf4f
commit fc11c10063

View File

@@ -187,6 +187,8 @@ fn run_c_compile(
) -> anyhow::Result<()> {
#[cfg(not(windows))]
let c_compiler = "cc";
// We must use a C++ compiler on Windows because wasm.h uses `static_assert`
// which isn't available in `clang` on Windows.
#[cfg(windows)]
let c_compiler = "clang++";