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

Unified Diff: build/toolchain/win/BUILD.gn

Issue 123463005: GN Command line -D parsing, goma on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't use optparse Created 6 years, 11 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/gyp_chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/win/BUILD.gn
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
index 6abf8082daac2d2e23fe8cb399bf5a94ef728427..ceb0ca8d5c78ac872c598a1739fa20e3ed04d631 100644
--- a/build/toolchain/win/BUILD.gn
+++ b/build/toolchain/win/BUILD.gn
@@ -2,6 +2,8 @@
# 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")
+
# Should only be running on Windows.
assert(is_win)
@@ -26,6 +28,11 @@ exec_script("setup_toolchain.py", [ gyp_win_tool_source ], "value")
stamp_command = "$python_path gyp-win-tool stamp \$out"
copy_command = "$python_path gyp-win-tool recursive-mirror \$in \$out"
+if (use_goma) {
+ # Add the Goma compiler prefixes to the GYP file.
+ gyp_header = make_goma_global_settings
+}
+
# 32-bit toolchain -------------------------------------------------------------
toolchain("32") {
« no previous file with comments | « build/gyp_chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698