OLD | NEW |
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("//third_party/icu/config.gni") | 6 import("//third_party/icu/config.gni") |
7 import("v8.gni") | 7 import("v8.gni") |
8 | 8 |
9 declare_args() { | 9 declare_args() { |
10 # Sets the test isolation mode (noop|prepare|check). | 10 # Sets the test isolation mode (noop|prepare|check). |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (is_tsan) { | 59 if (is_tsan) { |
60 tsan = "1" | 60 tsan = "1" |
61 } else { | 61 } else { |
62 tsan = "0" | 62 tsan = "0" |
63 } | 63 } |
64 if (is_cfi) { | 64 if (is_cfi) { |
65 cfi_vptr = "1" | 65 cfi_vptr = "1" |
66 } else { | 66 } else { |
67 cfi_vptr = "0" | 67 cfi_vptr = "0" |
68 } | 68 } |
69 if (use_custom_libcxx) { | |
70 custom_libcxx = "1" | |
71 } else { | |
72 custom_libcxx = "0" | |
73 } | |
74 if (target_cpu == "x86") { | 69 if (target_cpu == "x86") { |
75 target_arch = "ia32" | 70 target_arch = "ia32" |
76 } else { | 71 } else { |
77 target_arch = target_cpu | 72 target_arch = target_cpu |
78 } | 73 } |
79 if (is_debug) { | 74 if (is_debug) { |
80 configuration_name = "Debug" | 75 configuration_name = "Debug" |
81 } else { | 76 } else { |
82 configuration_name = "Release" | 77 configuration_name = "Release" |
83 } | 78 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 "tsan=$tsan", | 147 "tsan=$tsan", |
153 "--config-variable", | 148 "--config-variable", |
154 "coverage=0", | 149 "coverage=0", |
155 "--config-variable", | 150 "--config-variable", |
156 "sanitizer_coverage=0", | 151 "sanitizer_coverage=0", |
157 "--config-variable", | 152 "--config-variable", |
158 "component=$component", | 153 "component=$component", |
159 "--config-variable", | 154 "--config-variable", |
160 "target_arch=$target_arch", | 155 "target_arch=$target_arch", |
161 "--config-variable", | 156 "--config-variable", |
162 "use_custom_libcxx=$custom_libcxx", | |
163 "--config-variable", | |
164 "v8_use_external_startup_data=$use_external_startup_data", | 157 "v8_use_external_startup_data=$use_external_startup_data", |
165 "--config-variable", | 158 "--config-variable", |
166 "v8_use_snapshot=$use_snapshot", | 159 "v8_use_snapshot=$use_snapshot", |
167 ] | 160 ] |
168 | 161 |
169 if (is_win) { | 162 if (is_win) { |
170 args += [ | 163 args += [ |
171 "--config-variable", | 164 "--config-variable", |
172 "msvs_version=2013", | 165 "msvs_version=2013", |
173 ] | 166 ] |
174 } else { | 167 } else { |
175 args += [ | 168 args += [ |
176 "--config-variable", | 169 "--config-variable", |
177 "msvs_version=0", | 170 "msvs_version=0", |
178 ] | 171 ] |
179 } | 172 } |
180 } | 173 } |
181 } | 174 } |
182 } | 175 } |
OLD | NEW |