Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 7028bb3b9eb1b4ccfb91714c1e7771a580e6b841..3d6fb5d2c1055758a67114408c06fb271041fc3a 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1255,7 +1255,8 @@ if (is_win) { |
# Default "optimization on" config. |
config("optimize") { |
if (is_win) { |
- if (is_official_build && full_wpo_on_official) { |
+ # TODO(thakis): Remove is_clang here, https://crbug.com/598772 |
+ if (is_official_build && full_wpo_on_official && !is_clang) { |
common_optimize_on_cflags += [ |
"/GL", # Whole program optimization. |