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

Side by Side Diff: gni/v8.gni

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Address comment Created 3 years, 9 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.gn ('k') | src/api.cc » ('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 2016 the V8 project authors. All rights reserved. 1 # Copyright 2016 the V8 project 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/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("//build/config/v8_target_cpu.gni") 6 import("//build/config/v8_target_cpu.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Includes files needed for correctness fuzzing. 9 # Includes files needed for correctness fuzzing.
10 v8_correctness_fuzzer = false 10 v8_correctness_fuzzer = false
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 # subdirectories. 59 # subdirectories.
60 v8_path_prefix = get_path_info("../", "abspath") 60 v8_path_prefix = get_path_info("../", "abspath")
61 61
62 v8_inspector_js_protocol = v8_path_prefix + "/src/inspector/js_protocol.json" 62 v8_inspector_js_protocol = v8_path_prefix + "/src/inspector/js_protocol.json"
63 63
64 ############################################################################### 64 ###############################################################################
65 # Templates 65 # Templates
66 # 66 #
67 67
68 # Common configs to remove or add in all v8 targets. 68 # Common configs to remove or add in all v8 targets.
69 v8_remove_configs = [ "//build/config/compiler:chromium_code" ] 69 v8_remove_configs = []
70 v8_add_configs = [ 70 v8_add_configs = [
71 "//build/config/compiler:no_chromium_code",
72 v8_path_prefix + ":features", 71 v8_path_prefix + ":features",
73 v8_path_prefix + ":toolchain", 72 v8_path_prefix + ":toolchain",
74 ] 73 ]
75 74
76 if (is_debug && !v8_optimized_debug) { 75 if (is_debug && !v8_optimized_debug) {
77 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] 76 v8_remove_configs += [ "//build/config/compiler:default_optimization" ]
78 v8_add_configs += [ "//build/config/compiler:no_optimize" ] 77 v8_add_configs += [ "//build/config/compiler:no_optimize" ]
79 } else { 78 } else {
80 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] 79 v8_remove_configs += [ "//build/config/compiler:default_optimization" ]
81 80
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 142 }
144 143
145 template("v8_component") { 144 template("v8_component") {
146 component(target_name) { 145 component(target_name) {
147 forward_variables_from(invoker, "*", [ "configs" ]) 146 forward_variables_from(invoker, "*", [ "configs" ])
148 configs += invoker.configs 147 configs += invoker.configs
149 configs -= v8_remove_configs 148 configs -= v8_remove_configs
150 configs += v8_add_configs 149 configs += v8_add_configs
151 } 150 }
152 } 151 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698