2019-07-24 22:58:51 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
|
|
Date: Tue, 16 Jul 2019 14:38:52 -0700
|
2019-08-24 01:14:23 +00:00
|
|
|
Subject: build_win_disable_zc_twophase.patch
|
2019-07-24 22:58:51 +00:00
|
|
|
|
2019-08-24 01:14:23 +00:00
|
|
|
Temporarily disable /Zc:twoPhase when libcxx is not used on
|
|
|
|
Windows. This is to workaround the bug in crbug.com/969698#c10
|
2019-07-24 22:58:51 +00:00
|
|
|
until fixes have landed in upstream.
|
|
|
|
|
|
|
|
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn
|
2019-10-28 22:12:35 +00:00
|
|
|
index 95e32520781fc225be1c2bf7d8bfe43925d16d45..8de0cb6a8d1987f84aaca5c3bb30ead0a2019bef 100644
|
2019-07-24 22:58:51 +00:00
|
|
|
--- a/build/config/win/BUILD.gn
|
|
|
|
+++ b/build/config/win/BUILD.gn
|
|
|
|
@@ -2,6 +2,7 @@
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
+import("//build/config/c++/c++.gni")
|
|
|
|
import("//build/config/chrome_build.gni")
|
|
|
|
import("//build/config/clang/clang.gni")
|
|
|
|
import("//build/config/compiler/compiler.gni")
|
2019-10-28 22:12:35 +00:00
|
|
|
@@ -63,7 +64,8 @@ config("compiler") {
|
2019-07-24 22:58:51 +00:00
|
|
|
"/utf-8", # Assume UTF-8 by default to avoid code page dependencies.
|
|
|
|
]
|
|
|
|
|
2019-10-28 22:12:35 +00:00
|
|
|
- if (is_clang) {
|
2019-07-24 22:58:51 +00:00
|
|
|
+ if (use_custom_libcxx) {
|
|
|
|
+ # Work around crbug.com/969698#c6, bug in MSSTL <xxatomic>.
|
2019-10-28 22:12:35 +00:00
|
|
|
cflags += [ "/Zc:twoPhase" ]
|
|
|
|
}
|
|
|
|
|