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

Side by Side Diff: BUILD.gn

Issue 2182933002: [gn] Set reasonable defaults for debugging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review Created 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 14 matching lines...) Expand all
25 # Enable compiler warnings when using V8_DEPRECATED apis. 25 # Enable compiler warnings when using V8_DEPRECATED apis.
26 v8_deprecation_warnings = false 26 v8_deprecation_warnings = false
27 27
28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
29 v8_imminent_deprecation_warnings = "" 29 v8_imminent_deprecation_warnings = ""
30 30
31 # Embeds the given script into the snapshot. 31 # Embeds the given script into the snapshot.
32 v8_embed_script = "" 32 v8_embed_script = ""
33 33
34 # Sets -dENABLE_DISASSEMBLER. 34 # Sets -dENABLE_DISASSEMBLER.
35 v8_enable_disassembler = false 35 v8_enable_disassembler = ""
36 36
37 # Sets -dENABLE_GDB_JIT_INTERFACE. 37 # Sets -dENABLE_GDB_JIT_INTERFACE.
38 v8_enable_gdbjit = "" 38 v8_enable_gdbjit = ""
39 39
40 # Sets -dENABLE_HANDLE_ZAPPING. 40 # Sets -dENABLE_HANDLE_ZAPPING.
41 v8_enable_handle_zapping = true 41 v8_enable_handle_zapping = true
42 42
43 # Enable ECMAScript Internationalization API. Enabling this feature will 43 # Enable ECMAScript Internationalization API. Enabling this feature will
44 # add a dependency on the ICU library. 44 # add a dependency on the ICU library.
45 v8_enable_i18n_support = true 45 v8_enable_i18n_support = true
46 46
47 # Enable slow dchecks. 47 # Enable slow dchecks.
48 v8_enable_slow_dchecks = false 48 v8_enable_slow_dchecks = false
49 49
50 # Interpreted regexp engine exists as platform-independent alternative 50 # Interpreted regexp engine exists as platform-independent alternative
51 # based where the regular expression is compiled to a bytecode. 51 # based where the regular expression is compiled to a bytecode.
52 v8_interpreted_regexp = false 52 v8_interpreted_regexp = false
53 53
54 # Sets -dOBJECT_PRINT. 54 # Sets -dOBJECT_PRINT.
55 v8_object_print = false 55 v8_object_print = ""
56 56
57 # With post mortem support enabled, metadata is embedded into libv8 that 57 # With post mortem support enabled, metadata is embedded into libv8 that
58 # describes various parameters of the VM for use by debuggers. See 58 # describes various parameters of the VM for use by debuggers. See
59 # tools/gen-postmortem-metadata.py for details. 59 # tools/gen-postmortem-metadata.py for details.
60 v8_postmortem_support = false 60 v8_postmortem_support = false
61 61
62 # Similar to vfp but on MIPS. 62 # Similar to vfp but on MIPS.
63 v8_can_use_fpu_instructions = true 63 v8_can_use_fpu_instructions = true
64 64
65 # Similar to the ARM hard float ABI but on MIPS. 65 # Similar to the ARM hard float ABI but on MIPS.
(...skipping 10 matching lines...) Expand all
76 } 76 }
77 } 77 }
78 if (v8_enable_gdbjit == "") { 78 if (v8_enable_gdbjit == "") {
79 if (defined(v8_enable_gdbjit_default)) { 79 if (defined(v8_enable_gdbjit_default)) {
80 v8_enable_gdbjit = v8_enable_gdbjit_default 80 v8_enable_gdbjit = v8_enable_gdbjit_default
81 } else { 81 } else {
82 v8_enable_gdbjit = false 82 v8_enable_gdbjit = false
83 } 83 }
84 } 84 }
85 85
86 # Derived defaults.
87 if (v8_object_print == "") {
88 v8_object_print = is_debug && !v8_optimized_debug
89 }
90 if (v8_enable_disassembler == "") {
91 v8_enable_disassembler = is_debug && !v8_optimized_debug
92 }
93
86 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc" 94 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc"
87 v8_random_seed = "314159265" 95 v8_random_seed = "314159265"
88 v8_toolset_for_shell = "host" 96 v8_toolset_for_shell = "host"
89 97
90 ############################################################################### 98 ###############################################################################
91 # Configurations 99 # Configurations
92 # 100 #
93 config("internal_config") { 101 config("internal_config") {
94 visibility = [ ":*" ] # Only targets in this file can depend on this. 102 visibility = [ ":*" ] # Only targets in this file can depend on this.
95 103
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2511 2519
2512 deps = [ 2520 deps = [
2513 ":fuzzer_support", 2521 ":fuzzer_support",
2514 ] 2522 ]
2515 2523
2516 configs = [ ":internal_config" ] 2524 configs = [ ":internal_config" ]
2517 } 2525 }
2518 2526
2519 v8_fuzzer("wasm_asmjs_fuzzer") { 2527 v8_fuzzer("wasm_asmjs_fuzzer") {
2520 } 2528 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698