win: Formally disallow cl.exe
cl.exe moved to "community supported" a while ago, but nobody seems to
be interested in maintaining this build configuration, so formally stop
supporting it.
We'll keep around most of the gn file goop for it (for v8 and angle and
other projects that use Chromium's gn files and want to keep supporting msvc),
but we'll stop supporting it in chromium itself.
Bug: 988071
Change-Id: I08b0cd2053a34d1d749a4feb5ffd500c54ddfcc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721454
Commit-Queue: Nico Weber <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Cr-Commit-Position: refs/heads/master@{#681605}
diff --git a/base/compiler_specific.h b/base/compiler_specific.h
index 1e22c6b..7e2c5101 100644
--- a/base/compiler_specific.h
+++ b/base/compiler_specific.h
@@ -9,6 +9,10 @@
#if defined(COMPILER_MSVC)
+#if !defined(__clang__)
+#error "Only clang-cl is supported on Windows, see https://crbug.com/988071"
+#endif
+
// Macros for suppressing and disabling warnings on MSVC.
//
// Warning numbers are enumerated at: