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

Unified Diff: build/config/pch.gni

Issue 2152783002: Enable precompiled headers for Blink on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning up comments Created 4 years, 5 months 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
« no previous file with comments | « build/config/BUILD.gn ('k') | third_party/WebKit/Source/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/pch.gni
diff --git a/build/config/pch.gni b/build/config/pch.gni
new file mode 100644
index 0000000000000000000000000000000000000000..ff586ef8216f255ed578e19e0018a329a38dafd6
--- /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
+ }
+}
« no previous file with comments | « build/config/BUILD.gn ('k') | third_party/WebKit/Source/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698