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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 if (v8_use_snapshot) { | 99 if (v8_use_snapshot) { |
100 use_snapshot = "true" | 100 use_snapshot = "true" |
101 } else { | 101 } else { |
102 use_snapshot = "false" | 102 use_snapshot = "false" |
103 } | 103 } |
104 if (v8_has_valgrind) { | 104 if (v8_has_valgrind) { |
105 has_valgrind = "1" | 105 has_valgrind = "1" |
106 } else { | 106 } else { |
107 has_valgrind = "0" | 107 has_valgrind = "0" |
108 } | 108 } |
| 109 if (v8_gcmole) { |
| 110 gcmole = "1" |
| 111 } else { |
| 112 gcmole = "0" |
| 113 } |
| 114 |
109 | 115 |
110 # Note, all paths will be rebased in isolate_driver.py to be relative to | 116 # Note, all paths will be rebased in isolate_driver.py to be relative to |
111 # the isolate file. | 117 # the isolate file. |
112 args = [ | 118 args = [ |
113 v8_test_isolation_mode, | 119 v8_test_isolation_mode, |
114 "--isolated", | 120 "--isolated", |
115 rebase_path("$root_out_dir/$name.isolated", root_build_dir), | 121 rebase_path("$root_out_dir/$name.isolated", root_build_dir), |
116 "--isolate", | 122 "--isolate", |
117 rebase_path(invoker.isolate, root_build_dir), | 123 rebase_path(invoker.isolate, root_build_dir), |
118 | 124 |
119 # Path variables are used to replace file paths when loading a .isolate | 125 # Path variables are used to replace file paths when loading a .isolate |
120 # file | 126 # file |
121 "--path-variable", | 127 "--path-variable", |
122 "DEPTH", | 128 "DEPTH", |
123 rebase_path("//", root_build_dir), | 129 rebase_path("//", root_build_dir), |
124 "--path-variable", | 130 "--path-variable", |
125 "PRODUCT_DIR", | 131 "PRODUCT_DIR", |
126 rebase_path(root_out_dir, root_build_dir), | 132 rebase_path(root_out_dir, root_build_dir), |
127 | 133 |
128 # TODO(machenbach): Set variables for remaining features. | 134 # TODO(machenbach): Set variables for remaining features. |
129 "--config-variable", | 135 "--config-variable", |
130 "CONFIGURATION_NAME=$configuration_name", | 136 "CONFIGURATION_NAME=$configuration_name", |
131 "--config-variable", | 137 "--config-variable", |
132 "OS=$target_os", | 138 "OS=$target_os", |
133 "--config-variable", | 139 "--config-variable", |
134 "asan=$asan", | 140 "asan=$asan", |
135 "--config-variable", | 141 "--config-variable", |
136 "cfi_vptr=$cfi_vptr", | 142 "cfi_vptr=$cfi_vptr", |
137 "--config-variable", | 143 "--config-variable", |
138 "gcmole=0", | 144 "gcmole=$gcmole", |
139 "--config-variable", | 145 "--config-variable", |
140 "has_valgrind=$has_valgrind", | 146 "has_valgrind=$has_valgrind", |
141 "--config-variable", | 147 "--config-variable", |
142 "icu_use_data_file_flag=$icu_use_data_file_flag", | 148 "icu_use_data_file_flag=$icu_use_data_file_flag", |
143 "--config-variable", | 149 "--config-variable", |
144 "msan=$msan", | 150 "msan=$msan", |
145 "--config-variable", | 151 "--config-variable", |
146 "tsan=$tsan", | 152 "tsan=$tsan", |
147 "--config-variable", | 153 "--config-variable", |
148 "coverage=0", | 154 "coverage=0", |
(...skipping 18 matching lines...) Expand all Loading... |
167 ] | 173 ] |
168 } else { | 174 } else { |
169 args += [ | 175 args += [ |
170 "--config-variable", | 176 "--config-variable", |
171 "msvs_version=0", | 177 "msvs_version=0", |
172 ] | 178 ] |
173 } | 179 } |
174 } | 180 } |
175 } | 181 } |
176 } | 182 } |
OLD | NEW |