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

Side by Side Diff: tools/gn/BUILD.gn

Issue 1256783007: Rename iterator debugging flag in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « build/config/BUILD.gn ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 defines = [ "GN_BUILD" ] 7 defines = [ "GN_BUILD" ]
8 8
9 static_library("gn_lib") { 9 static_library("gn_lib") {
10 configs += [ "//build/config:precompiled_headers" ] 10 configs += [ "//build/config:precompiled_headers" ]
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 outfile, 207 outfile,
208 ] 208 ]
209 209
210 args = [ 210 args = [
211 rebase_path("//", root_build_dir), 211 rebase_path("//", root_build_dir),
212 rebase_path(outfile, root_build_dir), 212 rebase_path(outfile, root_build_dir),
213 "TOOLS_GN_LAST_COMMIT_POSITION_H_", 213 "TOOLS_GN_LAST_COMMIT_POSITION_H_",
214 ] 214 ]
215 } 215 }
216 216
217 # Note for Windows debugging: GN is super-multithreaded and uses a lot of STL.
218 # Iterator debugging on Windows does locking for every access, which ends up
219 # slowing down debug runtime from 0:36 to 9:40. If you want to run debug builds
220 # of GN over the large Chrome build, you will want to set the arg:
221 # enable_iterator_debugging = false
217 executable("gn") { 222 executable("gn") {
218 sources = [ 223 sources = [
219 "gn_main.cc", 224 "gn_main.cc",
220 ] 225 ]
221 226
222 deps = [ 227 deps = [
223 ":gn_lib", 228 ":gn_lib",
224 ":last_commit_position", 229 ":last_commit_position",
225 "//base", 230 "//base",
226 ] 231 ]
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 309 }
305 310
306 executable("generate_test_gn_data") { 311 executable("generate_test_gn_data") {
307 sources = [ 312 sources = [
308 "generate_test_gn_data.cc", 313 "generate_test_gn_data.cc",
309 ] 314 ]
310 deps = [ 315 deps = [
311 "//base", 316 "//base",
312 ] 317 ]
313 } 318 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698