OLD | NEW |
---|---|
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 # ============================================================================= | 5 # ============================================================================= |
6 # BUILD FLAGS | 6 # BUILD FLAGS |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # This block lists input arguments to the build, along with their default | 9 # This block lists input arguments to the build, along with their default |
10 # values. GN requires listing them explicitly so it can validate input and have | 10 # values. GN requires listing them explicitly so it can validate input and have |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
366 # Linux is slowed by having symbols as part of the target binary, whereas | 366 # Linux is slowed by having symbols as part of the target binary, whereas |
367 # Mac and Windows have them separate, so in Release Linux, default them off. | 367 # Mac and Windows have them separate, so in Release Linux, default them off. |
368 if (is_debug || !is_linux) { | 368 if (is_debug || !is_linux) { |
369 symbol_level = 2 | 369 symbol_level = 2 |
370 } else { | 370 } else { |
371 symbol_level = 0 | 371 symbol_level = 0 |
372 } | 372 } |
373 } | 373 } |
374 | 374 |
375 # Symbol setup. | 375 # Symbol setup. |
376 import("//build/toolchain/goma.gni") | |
Dirk Pranke
2014/11/21 22:16:42
We still have the concerns about global goma vars
| |
376 if (symbol_level == 2) { | 377 if (symbol_level == 2) { |
377 _default_symbols_config = "//build/config/compiler:symbols" | 378 if (is_win && use_goma) { |
379 # GOMA doesn't support full symbols on Win. | |
scottmg
2014/11/21 22:26:59
please change this comment still
| |
380 _default_symbols_config = "//build/config/compiler:minimal_symbols" | |
381 } else { | |
382 _default_symbols_config = "//build/config/compiler:symbols" | |
383 } | |
378 } else if (symbol_level == 1) { | 384 } else if (symbol_level == 1) { |
379 _default_symbols_config = "//build/config/compiler:minimal_symbols" | 385 _default_symbols_config = "//build/config/compiler:minimal_symbols" |
380 } else if (symbol_level == 0) { | 386 } else if (symbol_level == 0) { |
381 _default_symbols_config = "//build/config/compiler:no_symbols" | 387 _default_symbols_config = "//build/config/compiler:no_symbols" |
382 } else { | 388 } else { |
383 assert(false, "Bad value for symbol_level.") | 389 assert(false, "Bad value for symbol_level.") |
384 } | 390 } |
385 _native_compiler_configs += [ _default_symbols_config ] | 391 _native_compiler_configs += [ _default_symbols_config ] |
386 | 392 |
387 # Windows linker setup for EXEs and DLLs. | 393 # Windows linker setup for EXEs and DLLs. |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
692 if (defined(invoker.output_extension)) { output_extension = invoker.output _extension } | 698 if (defined(invoker.output_extension)) { output_extension = invoker.output _extension } |
693 if (defined(invoker.output_name)) { output_name = invoker.output_name } | 699 if (defined(invoker.output_name)) { output_name = invoker.output_name } |
694 if (defined(invoker.public)) { public = invoker.public } | 700 if (defined(invoker.public)) { public = invoker.public } |
695 if (defined(invoker.public_configs)) { public_configs = invoker.public_con figs } | 701 if (defined(invoker.public_configs)) { public_configs = invoker.public_con figs } |
696 if (defined(invoker.public_deps)) { public_deps = invoker.public_deps } | 702 if (defined(invoker.public_deps)) { public_deps = invoker.public_deps } |
697 if (defined(invoker.sources)) { sources = invoker.sources } | 703 if (defined(invoker.sources)) { sources = invoker.sources } |
698 if (defined(invoker.visibility)) { visibility = invoker.visibility } | 704 if (defined(invoker.visibility)) { visibility = invoker.visibility } |
699 } | 705 } |
700 } | 706 } |
701 } | 707 } |
OLD | NEW |