Drop /Zc:twoPhase- flag from DXC build with clang-cl
It's only needed when building with MSVC, and clang-cl is deprecating
the flag.
Bug: chromium:1495100
Change-Id: I3da6e93faa07b39b5c45121968e487e0615f31c8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/158241
Auto-Submit: Hans Wennborg <hwennborg@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
diff --git a/third_party/gn/dxc/BUILD.gn b/third_party/gn/dxc/BUILD.gn
index 5909ce7..95a090d 100644
--- a/third_party/gn/dxc/BUILD.gn
+++ b/third_party/gn/dxc/BUILD.gn
@@ -521,10 +521,14 @@
cflags_cc += [
"/EHsc", # DXC uses exceptions
"/Zc:__cplusplus",
- "/Zc:twoPhase-", # DXC source relies on MSVC's non-conforming
- # two-phase lookup
"/Zc:sizedDealloc-", # Disable sized allocation
]
+ if (!is_clang) {
+ cflags_cc += [
+ "/Zc:twoPhase-", # DXC source relies on MSVC's non-conforming
+ # two-phase lookup
+ ]
+ }
cflags_c += [
"/EHsc", # DXC uses exceptions