Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3693)

Unified Diff: build/config/pch.gni

Issue 2520863002: Enable precompiled headers for Blink on Windows. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/pch.gni
diff --git a/build/config/pch.gni b/build/config/pch.gni
new file mode 100644
index 0000000000000000000000000000000000000000..5daf69d30259fa0a7261ffd6feddb18067b0a35d
--- /dev/null
+++ b/build/config/pch.gni
@@ -0,0 +1,16 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/toolchain/goma.gni")
+
+declare_args() {
+ # Normally we try to decide whether to use precompiled headers or
+ # not based on the other build arguments, but in some cases it is
+ # easiest to force them off explicitly.
+ if (is_official_build || use_goma) {
+ disable_precompiled_headers = true
+ } else {
+ disable_precompiled_headers = false
+ }
Nico 2016/11/21 15:42:25 disable_precompiled_headers = is_official_build ||
sof 2016/11/21 19:24:58 ok, switched to enable_precompiled_headers.
+}

Powered by Google App Engine
This is Rietveld 408576698