mb_config.pyl 26.9 KB
Newer Older
machenbach's avatar
machenbach committed
1 2 3 4 5 6 7 8
# Copyright 2016 The V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  # This is a map of buildbot master names -> buildbot builder names ->
  # config names (where each config name is a key in the 'configs' dict,
  # below). MB uses this dict to look up which config to use for a given bot.
machenbach's avatar
machenbach committed
9
  # Bots are ordered by appearance on waterfall.
machenbach's avatar
machenbach committed
10
  'masters': {
11
    'developer_default': {
12 13 14 15 16 17
      'arm.debug': 'default_debug_arm',
      'arm.optdebug': 'default_optdebug_arm',
      'arm.release': 'default_release_arm',
      'arm64.debug': 'default_debug_arm64',
      'arm64.optdebug': 'default_optdebug_arm64',
      'arm64.release': 'default_release_arm64',
18 19 20
      'ia32.debug': 'default_debug_x86',
      'ia32.optdebug': 'default_optdebug_x86',
      'ia32.release': 'default_release_x86',
21 22 23 24 25 26
      'mipsel.debug': 'default_debug_mipsel',
      'mipsel.optdebug': 'default_optdebug_mipsel',
      'mipsel.release': 'default_release_mipsel',
      'mips64el.debug': 'default_debug_mips64el',
      'mips64el.optdebug': 'default_optdebug_mips64el',
      'mips64el.release': 'default_release_mips64el',
27 28 29 30 31
      'x64.debug': 'default_debug_x64',
      'x64.optdebug': 'default_optdebug_x64',
      'x64.release': 'default_release_x64',
    },

32 33 34 35 36 37 38 39
    'client.dart.fyi': {
      'v8-linux-release': 'gyp_release_x86_disassembler',
      'v8-win-release': 'gyp_release_x86_disassembler',
      'v8-mac-release': 'gyp_release_x86_disassembler',
    },
    'client.dynamorio': {
      'linux-v8-dr': 'gyp_release_x64',
    },
machenbach's avatar
machenbach committed
40
    'client.v8': {
41
      # Linux.
42 43
      'V8 Linux - builder': 'gn_release_x86_gcmole',
      'V8 Linux - debug builder': 'gn_debug_x86',
44 45 46
      'V8 Linux - nosnap builder': 'gn_release_x86_no_snap',
      'V8 Linux - nosnap debug builder': 'gn_debug_x86_no_snap',
      'V8 Linux - shared': 'gn_release_x86_shared_verify_heap',
47
      'V8 Linux - noi18n - debug': 'gn_debug_x86_no_i18n',
48
      'V8 Linux - verify csa': 'gn_release_x86_verify_csa',
machenbach's avatar
machenbach committed
49
      # Linux64.
50
      'V8 Linux64 - builder': 'gn_release_x64_valgrind',
51
      'V8 Linux64 - debug builder': 'gn_debug_x64_valgrind',
52
      'V8 Linux64 - custom snapshot - debug builder': 'gn_debug_x64_custom',
53
      'V8 Linux64 - internal snapshot': 'gn_release_x64_internal',
54
      'V8 Linux64 - gyp': 'gyp_release_x64',
55
      'V8 Linux64 - verify csa': 'gn_release_x64_verify_csa',
56
      # Windows.
machenbach's avatar
machenbach committed
57 58
      'V8 Win32 - builder': 'gn_release_x86_minimal_symbols',
      'V8 Win32 - debug builder': 'gn_debug_x86_minimal_symbols',
59
      'V8 Win32 - nosnap - shared':
machenbach's avatar
machenbach committed
60 61 62
        'gn_release_x86_no_snap_shared_minimal_symbols',
      'V8 Win64': 'gn_release_x64_minimal_symbols',
      'V8 Win64 - debug': 'gn_debug_x64_minimal_symbols',
63
      # TODO(machenbach): Switch plugins on when errors are fixed.
64
      'V8 Win64 - clang': 'gn_release_x64_clang',
65
      # Mac.
machenbach's avatar
machenbach committed
66 67 68 69 70
      'V8 Mac': 'gn_release_x86',
      'V8 Mac - debug': 'gn_debug_x86',
      'V8 Mac64': 'gn_release_x64',
      'V8 Mac64 - debug': 'gn_debug_x64',
      'V8 Mac GC Stress': 'gn_debug_x86',
71
      'V8 Mac64 ASAN': 'gn_release_x64_asan_no_lsan',
72
      # Sanitizers.
73
      'V8 Linux64 ASAN': 'gn_release_x64_asan',
machenbach's avatar
machenbach committed
74
      'V8 Linux64 TSAN': 'gn_release_x64_tsan',
75
      'V8 Linux - arm64 - sim - MSAN': 'gn_release_simulate_arm64_msan',
76
      # Clusterfuzz.
77
      'V8 Linux64 - release builder': 'gn_release_x64_correctness_fuzzer',
78
      'V8 Linux64 ASAN no inline - release builder':
79 80
          'gn_release_x64_asan_symbolized_edge_verify_heap',
      'V8 Linux64 ASAN - debug builder': 'gn_debug_x64_asan_edge',
81
      'V8 Linux64 ASAN arm64 - debug builder':
82
          'gn_debug_simulate_arm64_asan_edge',
83
      'V8 Linux ASAN arm - debug builder':
84
          'gn_debug_simulate_arm_asan_edge',
85
      'V8 Linux ASAN mipsel - debug builder':
86
          'gn_debug_simulate_mipsel_asan_edge',
87
      # Misc.
88
      'V8 Linux gcc 4.8': 'gn_release_x86_gcc',
machenbach's avatar
machenbach committed
89 90
      # FYI.
      'V8 Linux - swarming staging': 'gn_release_x64',
91 92 93 94
      # TODO(machenbach): Figure out if symbolized is still needed. The
      # original config also specified -O1, which we dropped because chromium
      # doesn't have it (anymore).
      'V8 Linux64 - cfi': 'gyp_release_x64_cfi_symbolized',
95
      'V8 Linux - vtunejit': 'gyp_debug_x86_vtunejit',
96
      'V8 Linux64 - gcov coverage': 'gyp_release_x64_gcc_coverage',
97 98 99 100
      'V8 Linux - predictable': 'gyp_release_x86_predictable',
      'V8 Linux - full debug': 'gyp_full_debug_x86',
      'V8 Linux - interpreted regexp': 'gyp_release_x86_interpreted_regexp',
      'V8 Random Deopt Fuzzer - debug': 'gyp_debug_x86',
machenbach's avatar
machenbach committed
101
    },
102 103 104

    'client.v8.ports': {
      # Arm.
105 106
      'V8 Arm - builder': 'gn_release_arm',
      'V8 Arm - debug builder': 'gn_debug_arm',
107
      'V8 Android Arm - builder': 'gn_release_android_arm',
108 109
      'V8 Linux - arm - sim': 'gn_release_simulate_arm',
      'V8 Linux - arm - sim - debug': 'gn_debug_simulate_arm',
110
      # Arm64.
111
      'V8 Android Arm64 - builder': 'gn_release_android_arm64',
112 113
      'V8 Linux - arm64 - sim': 'gn_release_simulate_arm64',
      'V8 Linux - arm64 - sim - debug': 'gn_debug_simulate_arm64',
114
      'V8 Linux - arm64 - sim - nosnap - debug':
115 116
          'gn_debug_simulate_arm64_no_snap',
      'V8 Linux - arm64 - sim - gc stress': 'gn_debug_simulate_arm64',
117 118
      # Mips.
      'V8 Mips - builder': 'gyp_release_mips_no_snap_no_i18n',
119 120
      'V8 Linux - mipsel - sim - builder': 'gn_release_simulate_mipsel',
      'V8 Linux - mips64el - sim - builder': 'gn_release_simulate_mips64el',
121 122 123 124 125 126 127
      # PPC.
      'V8 Linux - ppc - sim': 'gyp_release_simulate_ppc',
      'V8 Linux - ppc64 - sim': 'gyp_release_simulate_ppc64',
      # S390.
      'V8 Linux - s390 - sim': 'gyp_release_simulate_s390',
      'V8 Linux - s390x - sim': 'gyp_release_simulate_s390x',
      # X87.
128
      'V8 Linux - x87 - nosnap - debug builder': 'gyp_debug_simulate_x87',
129
    },
130
    'client.v8.branches': {
131 132 133 134
      'V8 Linux - beta branch': 'gn_release_x86',
      'V8 Linux - beta branch - debug': 'gn_debug_x86',
      'V8 Linux - stable branch': 'gn_release_x86',
      'V8 Linux - stable branch - debug': 'gn_debug_x86',
135
      'V8 Linux64 - beta branch': 'gn_release_x64',
136 137 138
      'V8 Linux64 - beta branch - debug': 'gn_debug_x64',
      'V8 Linux64 - stable branch': 'gn_release_x64',
      'V8 Linux64 - stable branch - debug': 'gn_debug_x64',
139 140 141 142
      'V8 arm - sim - beta branch': 'gn_release_simulate_arm',
      'V8 arm - sim - beta branch - debug': 'gn_debug_simulate_arm',
      'V8 arm - sim - stable branch': 'gn_release_simulate_arm',
      'V8 arm - sim - stable branch - debug': 'gn_debug_simulate_arm',
143 144 145 146
      'V8 mips64el - sim - beta branch': 'gn_release_simulate_mips64el',
      'V8 mips64el - sim - stable branch': 'gn_release_simulate_mips64el',
      'V8 mipsel - sim - beta branch': 'gn_release_simulate_mipsel',
      'V8 mipsel - sim - stable branch': 'gn_release_simulate_mipsel',
147 148 149 150 151 152 153 154 155
      'V8 ppc - sim - beta branch': 'gyp_release_simulate_ppc',
      'V8 ppc - sim - stable branch': 'gyp_release_simulate_ppc',
      'V8 ppc64 - sim - beta branch': 'gyp_release_simulate_ppc64',
      'V8 ppc64 - sim - stable branch': 'gyp_release_simulate_ppc64',
      'V8 s390 - sim - beta branch': 'gyp_release_simulate_s390',
      'V8 s390 - sim - stable branch': 'gyp_release_simulate_s390',
      'V8 s390x - sim - beta branch': 'gyp_release_simulate_s390x',
      'V8 s390x - sim - stable branch': 'gyp_release_simulate_s390x',
    },
machenbach's avatar
machenbach committed
156
    'tryserver.v8': {
157
      'v8_linux_rel_ng': 'gn_release_x86_gcmole_trybot',
158
      'v8_linux_verify_csa_rel_ng': 'gn_release_x86_verify_csa',
159 160 161
      'v8_linux_avx2_dbg': 'gn_debug_x86_trybot',
      'v8_linux_nodcheck_rel_ng': 'gn_release_x86_minimal_symbols',
      'v8_linux_dbg_ng': 'gn_debug_x86_trybot',
162
      'v8_linux_noi18n_rel_ng': 'gn_release_x86_no_i18n_trybot',
163
      'v8_linux_gc_stress_dbg': 'gn_debug_x86_trybot',
164 165
      'v8_linux_nosnap_rel': 'gn_release_x86_no_snap_trybot',
      'v8_linux_nosnap_dbg': 'gn_debug_x86_no_snap_trybot',
166 167
      'v8_linux_gcc_compile_rel': 'gn_release_x86_gcc_minimal_symbols',
      'v8_linux_gcc_rel': 'gn_release_x86_gcc_minimal_symbols',
168
      'v8_linux64_rel_ng': 'gn_release_x64_valgrind_trybot',
169
      'v8_linux64_verify_csa_rel_ng': 'gn_release_x64_verify_csa',
170
      'v8_linux64_gyp_rel_ng': 'gyp_release_x64',
171
      'v8_linux64_avx2_rel_ng': 'gn_release_x64_trybot',
172
      'v8_linux64_avx2_dbg': 'gn_debug_x64_trybot',
173
      'v8_linux64_asan_rel_ng': 'gn_release_x64_asan_minimal_symbols',
174
      'v8_linux64_msan_rel': 'gn_release_simulate_arm64_msan_minimal_symbols',
175 176
      'v8_linux64_sanitizer_coverage_rel':
          'gyp_release_x64_asan_minimal_symbols_coverage',
machenbach's avatar
machenbach committed
177
      'v8_linux64_tsan_rel': 'gn_release_x64_tsan_minimal_symbols',
machenbach's avatar
machenbach committed
178 179 180
      'v8_win_dbg': 'gn_debug_x86_trybot',
      'v8_win_compile_dbg': 'gn_debug_x86_trybot',
      'v8_win_rel_ng': 'gn_release_x86_trybot',
181
      'v8_win_nosnap_shared_rel_ng':
machenbach's avatar
machenbach committed
182 183 184
        'gn_release_x86_no_snap_shared_minimal_symbols',
      'v8_win64_dbg': 'gn_debug_x64_minimal_symbols',
      'v8_win64_rel_ng': 'gn_release_x64_trybot',
machenbach's avatar
machenbach committed
185 186 187 188 189
      'v8_mac_rel_ng': 'gn_release_x86_trybot',
      'v8_mac_dbg': 'gn_debug_x86_trybot',
      'v8_mac_gc_stress_dbg': 'gn_debug_x86_trybot',
      'v8_mac64_rel': 'gn_release_x64_trybot',
      'v8_mac64_dbg': 'gn_debug_x64_minimal_symbols',
190
      'v8_mac64_asan_rel': 'gn_release_x64_asan_no_lsan',
191 192 193 194
      'v8_linux_arm_rel_ng': 'gn_release_simulate_arm_trybot',
      'v8_linux_arm_dbg': 'gn_debug_simulate_arm',
      'v8_linux_arm_armv8a_rel': 'gn_release_simulate_arm_trybot',
      'v8_linux_arm_armv8a_dbg': 'gn_debug_simulate_arm',
195 196 197
      'v8_linux_arm64_rel_ng': 'gn_release_simulate_arm64_trybot',
      'v8_linux_arm64_dbg': 'gn_debug_simulate_arm64',
      'v8_linux_arm64_gc_stress_dbg': 'gn_debug_simulate_arm64',
198 199
      'v8_linux_mipsel_compile_rel': 'gn_release_simulate_mipsel',
      'v8_linux_mips64el_compile_rel': 'gn_release_simulate_mips64el',
200
      'v8_android_arm_compile_rel': 'gn_release_android_arm',
machenbach's avatar
machenbach committed
201 202 203
    },
  },

204 205 206

  # To ease readability, config values are ordered by:
  # gyp/gn, release/debug, arch type, other values alphabetically.
machenbach's avatar
machenbach committed
207
  'configs': {
208
    # Developer default configs.
209 210 211 212 213 214 215 216 217 218 219 220 221 222
    'default_debug_arm': [
      'gn', 'debug', 'simulate_arm', 'v8_enable_slow_dchecks',
      'v8_full_debug'],
    'default_optdebug_arm': [
      'gn', 'debug', 'simulate_arm', 'v8_enable_slow_dchecks'],
    'default_release_arm': [
      'gn', 'release', 'simulate_arm'],
    'default_debug_arm64': [
      'gn', 'debug', 'simulate_arm64', 'v8_enable_slow_dchecks',
      'v8_full_debug'],
    'default_optdebug_arm64': [
      'gn', 'debug', 'simulate_arm64', 'v8_enable_slow_dchecks'],
    'default_release_arm64': [
      'gn', 'release', 'simulate_arm64'],
223 224 225 226 227 228 229 230 231 232 233 234 235 236
    'default_debug_mipsel': [
      'gn', 'debug', 'simulate_mipsel', 'v8_enable_slow_dchecks',
      'v8_full_debug'],
    'default_optdebug_mipsel': [
      'gn', 'debug', 'simulate_mipsel', 'v8_enable_slow_dchecks'],
    'default_release_mipsel': [
      'gn', 'release', 'simulate_mipsel'],
    'default_debug_mips64el': [
      'gn', 'debug', 'simulate_mips64el', 'v8_enable_slow_dchecks',
      'v8_full_debug'],
    'default_optdebug_mips64el': [
      'gn', 'debug', 'simulate_mips64el', 'v8_enable_slow_dchecks'],
    'default_release_mips64el': [
      'gn', 'release', 'simulate_mips64el'],
237 238 239 240 241 242 243 244 245 246 247 248 249 250
    'default_debug_x64': [
      'gn', 'debug', 'x64', 'v8_enable_slow_dchecks', 'v8_full_debug'],
    'default_optdebug_x64': [
      'gn', 'debug', 'x64', 'v8_enable_slow_dchecks'],
    'default_release_x64': [
      'gn', 'release', 'x64'],
    'default_debug_x86': [
      'gn', 'debug', 'x86', 'v8_enable_slow_dchecks', 'v8_full_debug'],
    'default_optdebug_x86': [
      'gn', 'debug', 'x86', 'v8_enable_slow_dchecks'],
    'default_release_x86': [
      'gn', 'release', 'x86'],


251
    # GN debug configs for simulators.
252 253
    'gn_debug_simulate_arm': [
      'gn', 'debug_bot', 'simulate_arm', 'swarming'],
254 255
    'gn_debug_simulate_arm_asan_edge': [
      'gn', 'debug_bot', 'simulate_arm', 'asan', 'edge'],
256 257
    'gn_debug_simulate_arm64': [
      'gn', 'debug_bot', 'simulate_arm64', 'swarming'],
258 259
    'gn_debug_simulate_arm64_asan_edge': [
      'gn', 'debug_bot', 'simulate_arm64', 'asan', 'lsan', 'edge'],
260 261
    'gn_debug_simulate_arm64_no_snap': [
      'gn', 'debug_bot', 'simulate_arm64', 'swarming', 'v8_snapshot_none'],
262 263
    'gn_debug_simulate_mipsel_asan_edge': [
      'gn', 'debug_bot', 'simulate_mipsel', 'asan', 'edge'],
264 265

    # GN release configs for simulators.
266 267 268 269
    'gn_release_simulate_arm': [
      'gn', 'release_bot', 'simulate_arm', 'swarming'],
    'gn_release_simulate_arm_trybot': [
      'gn', 'release_trybot', 'simulate_arm', 'swarming'],
270 271
    'gn_release_simulate_arm64': [
      'gn', 'release_bot', 'simulate_arm64', 'swarming'],
272 273 274 275 276
    'gn_release_simulate_arm64_msan': [
      'gn', 'release_bot', 'simulate_arm64', 'msan', 'swarming'],
    'gn_release_simulate_arm64_msan_minimal_symbols': [
      'gn', 'release_bot', 'simulate_arm64', 'msan', 'minimal_symbols',
      'swarming'],
277 278
    'gn_release_simulate_arm64_trybot': [
      'gn', 'release_trybot', 'simulate_arm64', 'swarming'],
279 280 281 282
    'gn_release_simulate_mipsel': [
      'gn', 'release_bot', 'simulate_mipsel', 'swarming'],
    'gn_release_simulate_mips64el': [
      'gn', 'release_bot', 'simulate_mips64el', 'swarming'],
283

284 285
    # GN debug configs for arm.
    'gn_debug_arm': [
286
      'gn', 'debug_bot', 'arm', 'crosscompile', 'hard_float', 'swarming'],
287

288
    # GN release configs for arm.
289 290
    'gn_release_arm': [
      'gn', 'release_bot', 'arm', 'crosscompile', 'hard_float', 'swarming'],
291
    'gn_release_android_arm': [
292 293
      'gn', 'release_bot', 'arm', 'android', 'crosscompile',
      'minimal_symbols', 'swarming'],
294
    'gn_release_android_arm64': [
295 296
      'gn', 'release_bot', 'arm64', 'android', 'crosscompile',
      'minimal_symbols', 'swarming'],
297

298
    # GN release configs for x64.
299 300
    'gn_release_x64': [
      'gn', 'release_bot', 'x64', 'swarming'],
301 302 303 304 305
    'gn_release_x64_asan': [
      'gn', 'release_bot', 'x64', 'asan', 'lsan', 'swarming'],
    'gn_release_x64_asan_minimal_symbols': [
      'gn', 'release_bot', 'x64', 'asan', 'lsan', 'minimal_symbols',
      'swarming'],
306 307
    'gn_release_x64_asan_no_lsan': [
      'gn', 'release_bot', 'x64', 'asan', 'swarming'],
308 309 310
    'gn_release_x64_asan_symbolized_edge_verify_heap': [
      'gn', 'release_bot', 'x64', 'asan', 'edge', 'lsan', 'symbolized',
      'v8_verify_heap'],
311 312
    'gn_release_x64_clang': [
      'gn', 'release_bot', 'x64', 'clang', 'swarming'],
313 314
    'gn_release_x64_correctness_fuzzer' : [
      'gn', 'release_bot', 'x64', 'v8_correctness_fuzzer'],
315 316
    'gn_release_x64_internal': [
      'gn', 'release_bot', 'x64', 'swarming', 'v8_snapshot_internal'],
machenbach's avatar
machenbach committed
317 318
    'gn_release_x64_minimal_symbols': [
      'gn', 'release_bot', 'x64', 'minimal_symbols', 'swarming'],
319 320
    'gn_release_x64_trybot': [
      'gn', 'release_trybot', 'x64', 'swarming'],
machenbach's avatar
machenbach committed
321 322 323 324
    'gn_release_x64_tsan': [
      'gn', 'release_bot', 'x64', 'tsan', 'swarming'],
    'gn_release_x64_tsan_minimal_symbols': [
      'gn', 'release_bot', 'x64', 'tsan', 'minimal_symbols', 'swarming'],
325 326 327 328
    'gn_release_x64_valgrind': [
      'gn', 'release_bot', 'x64', 'swarming', 'valgrind'],
    'gn_release_x64_valgrind_trybot': [
      'gn', 'release_trybot', 'x64', 'swarming', 'valgrind'],
329 330 331
    'gn_release_x64_verify_csa': [
      'gn', 'release_bot', 'x64', 'swarming', 'dcheck_always_on',
      'v8_enable_slow_dchecks', 'v8_verify_csa'],
332

333
    # GN debug configs for x64.
334 335
    'gn_debug_x64': [
      'gn', 'debug_bot', 'x64', 'swarming'],
336 337
    'gn_debug_x64_asan_edge': [
      'gn', 'debug_bot', 'x64', 'asan', 'lsan', 'edge'],
338 339
    'gn_debug_x64_custom': [
      'gn', 'debug_bot', 'x64', 'swarming', 'v8_snapshot_custom'],
machenbach's avatar
machenbach committed
340 341
    'gn_debug_x64_minimal_symbols': [
      'gn', 'debug_bot', 'x64', 'minimal_symbols', 'swarming'],
342 343 344 345 346
    'gn_debug_x64_trybot': [
      'gn', 'debug_trybot', 'x64', 'swarming'],
    'gn_debug_x64_valgrind': [
      'gn', 'debug_bot', 'x64', 'swarming', 'valgrind'],

347 348 349
    # GN debug configs for x86.
    'gn_debug_x86': [
      'gn', 'debug_bot', 'x86', 'swarming'],
machenbach's avatar
machenbach committed
350 351
    'gn_debug_x86_minimal_symbols': [
      'gn', 'debug_bot', 'x86', 'minimal_symbols', 'swarming'],
352
    'gn_debug_x86_no_i18n': [
353 354
      'gn', 'debug_bot', 'x86', 'swarming', 'v8_disable_inspector',
      'v8_no_i18n'],
355 356 357 358
    'gn_debug_x86_no_snap': [
      'gn', 'debug_bot', 'x86', 'swarming', 'v8_snapshot_none'],
    'gn_debug_x86_no_snap_trybot': [
      'gn', 'debug_trybot', 'x86', 'swarming', 'v8_snapshot_none'],
359 360 361 362
    'gn_debug_x86_trybot': [
      'gn', 'debug_trybot', 'x86', 'swarming'],

    # GN release configs for x86.
363 364
    'gn_release_x86': [
      'gn', 'release_bot', 'x86', 'swarming'],
365 366 367 368
    'gn_release_x86_gcc': [
      'gn', 'release_bot', 'x86', 'gcc'],
    'gn_release_x86_gcc_minimal_symbols': [
      'gn', 'release_bot', 'x86', 'gcc', 'minimal_symbols'],
369 370 371 372 373 374
    'gn_release_x86_gcmole': [
      'gn', 'release_bot', 'x86', 'gcmole', 'swarming'],
    'gn_release_x86_gcmole_trybot': [
      'gn', 'release_trybot', 'x86', 'gcmole', 'swarming'],
    'gn_release_x86_minimal_symbols': [
      'gn', 'release_bot', 'x86', 'minimal_symbols', 'swarming'],
375
    'gn_release_x86_no_i18n_trybot': [
376 377
      'gn', 'release_trybot', 'x86', 'swarming', 'v8_disable_inspector',
      'v8_no_i18n'],
378 379
    'gn_release_x86_no_snap': [
      'gn', 'release_bot', 'x86', 'swarming', 'v8_snapshot_none'],
machenbach's avatar
machenbach committed
380 381 382
    'gn_release_x86_no_snap_shared_minimal_symbols': [
      'gn', 'release', 'x86', 'goma', 'minimal_symbols', 'shared', 'swarming',
      'v8_snapshot_none'],
383 384 385 386
    'gn_release_x86_no_snap_trybot': [
      'gn', 'release_trybot', 'x86', 'swarming', 'v8_snapshot_none'],
    'gn_release_x86_shared_verify_heap': [
      'gn', 'release', 'x86', 'goma', 'shared', 'swarming', 'v8_verify_heap'],
machenbach's avatar
machenbach committed
387 388
    'gn_release_x86_trybot': [
      'gn', 'release_trybot', 'x86', 'swarming'],
389 390 391
    'gn_release_x86_verify_csa': [
      'gn', 'release_bot', 'x86', 'swarming', 'dcheck_always_on',
      'v8_enable_slow_dchecks', 'v8_verify_csa'],
392

393
    # Gyp debug configs for simulators.
394 395
    'gyp_debug_simulate_x87': [
      'gyp', 'debug_bot_static', 'simulate_x87', 'swarming'],
396 397

    # Gyp debug configs for x86.
398 399 400 401 402 403 404 405
    'gyp_debug_x86': [
      'gyp', 'debug_bot', 'x86', 'swarming'],
    'gyp_debug_x86_vtunejit': [
      'gyp', 'debug_bot', 'x86', 'v8_enable_vtunejit'],
    'gyp_full_debug_x86': [
      'gyp', 'debug', 'x86', 'goma', 'static', 'v8_enable_slow_dchecks',
      'v8_full_debug'],

406 407 408 409 410
    # Gyp release configs for mips.
    'gyp_release_mips_no_snap_no_i18n': [
      'gyp', 'release', 'mips', 'crosscompile', 'static', 'v8_no_i18n',
      'v8_snapshot_none'],

411 412 413 414 415 416 417 418 419 420 421
    # Gyp release configs for simulators.
    'gyp_release_simulate_ppc': [
      'gyp', 'release_bot', 'simulate_ppc', 'swarming'],
    'gyp_release_simulate_ppc64': [
      'gyp', 'release_bot', 'simulate_ppc64', 'swarming'],
    'gyp_release_simulate_s390': [
      'gyp', 'release_bot', 'simulate_s390', 'swarming'],
    'gyp_release_simulate_s390x': [
      'gyp', 'release_bot', 'simulate_s390x', 'swarming'],

    # Gyp release configs for x64.
machenbach's avatar
machenbach committed
422
    'gyp_release_x64': [
423
      'gyp', 'release_bot', 'x64', 'swarming'],
424 425 426
    'gyp_release_x64_asan_minimal_symbols_coverage': [
      'gyp', 'release_bot', 'x64', 'asan', 'bb', 'coverage', 'lsan',
      'minimal_symbols', 'swarming'],
427
    'gyp_release_x64_cfi_symbolized': [
428
      'gyp', 'release_bot', 'x64', 'cfi', 'swarming', 'symbolized'],
429 430
    'gyp_release_x64_gcc_coverage': [
      'gyp', 'release_bot', 'x64', 'coverage', 'gcc'],
431

432
    # Gyp release configs for x86.
433 434
    'gyp_release_x86_disassembler': [
      'gyp', 'release_bot', 'x86', 'v8_enable_disassembler'],
435 436 437 438
    'gyp_release_x86_interpreted_regexp': [
      'gyp', 'release_bot', 'x86', 'v8_interpreted_regexp'],
    'gyp_release_x86_predictable': [
      'gyp', 'release_bot', 'x86', 'v8_enable_verify_predictable'],
machenbach's avatar
machenbach committed
439 440 441
  },

  'mixins': {
442
    'android': {
443 444
      'gn_args': 'target_os="android" v8_android_log_stdout=true',
      'gyp_defines': 'OS=android v8_android_log_stdout=1',
445 446 447 448 449 450 451 452 453 454 455 456
    },

    'arm': {
      'gn_args': 'target_cpu="arm"',
      'gyp_defines': 'target_arch=arm',
    },

    'arm64': {
      'gn_args': 'target_cpu="arm64"',
      'gyp_defines': 'target_arch=arm64',
    },

457
    'asan': {
458
      'gn_args': 'is_asan=true',
459
      'gyp_defines': 'clang=1 asan=1',
460 461 462 463 464 465 466 467 468 469 470 471
    },

    'bb': {
      'gn_args': 'sanitizer_coverage_flags="bb"',
      'gyp_defines': 'sanitizer_coverage=bb',
    },

    'cfi': {
      'gn_args': 'is_cfi=true use_cfi_diag=true',
      'gyp_defines': 'cfi_vptr=1 cfi_diag=1',
    },

472
    'clang': {
473
      'gn_args': 'is_clang=true',
474 475 476
      'gyp_defines': 'clang=1',
    },

477 478 479 480 481
    'coverage': {
      # TODO(machenbach): Add this to gn.
      'gyp_defines': 'coverage=1',
    },

482 483 484 485
    'crosscompile': {
      'gyp_crosscompile': True,
    },

machenbach's avatar
machenbach committed
486 487 488 489 490
    'dcheck_always_on': {
      'gn_args': 'dcheck_always_on=true',
      'gyp_defines': 'dcheck_always_on=1',
    },

machenbach's avatar
machenbach committed
491
    'debug': {
492 493
      'gn_args': 'is_debug=true v8_enable_backtrace=true',
      'gyp_defines': 'v8_enable_backtrace=1',
machenbach's avatar
machenbach committed
494 495 496
    },

    'debug_bot': {
machenbach's avatar
machenbach committed
497
      'mixins': [
498
        'debug', 'shared', 'goma', 'v8_enable_slow_dchecks',
machenbach's avatar
machenbach committed
499 500 501
        'v8_optimized_debug'],
    },

502 503 504 505 506 507
    'debug_bot_static': {
      'mixins': [
        'debug', 'static', 'goma', 'v8_enable_slow_dchecks',
        'v8_optimized_debug'],
    },

machenbach's avatar
machenbach committed
508 509
    'debug_trybot': {
      'mixins': ['debug_bot', 'minimal_symbols'],
machenbach's avatar
machenbach committed
510 511
    },

512 513 514 515 516
    'edge': {
      'gn_args': 'sanitizer_coverage_flags="edge"',
      'gyp_defines': 'sanitizer_coverage=edge',
    },

517
    'gcc': {
518
      'gn_args': 'is_clang=false use_sysroot=false',
519 520 521 522
      'gyp_defines': 'clang=0',
    },

    'gcmole': {
523
      'gn_args': 'v8_gcmole=true',
524 525 526
      'gyp_defines': 'gcmole=1',
    },

machenbach's avatar
machenbach committed
527 528 529 530 531 532 533 534 535 536 537
    'gn': {'type': 'gn'},

    'goma': {
      # The MB code will properly escape goma_dir if necessary in the GYP
      # code path; the GN code path needs no escaping.
      'gn_args': 'use_goma=true',
      'gyp_defines': 'use_goma=1',
    },

    'gyp': {'type': 'gyp'},

538 539 540 541 542
    'hard_float': {
      'gn_args': 'arm_float_abi="hard"',
      'gyp_defines': 'arm_float_abi=hard',
    },

543
    'lsan': {
544
      'gn_args': 'is_lsan=true',
545 546 547
      'gyp_defines': 'lsan=1',
    },

machenbach's avatar
machenbach committed
548 549 550 551 552
    'minimal_symbols': {
      'gn_args': 'symbol_level=1',
      'gyp_defines': 'fastbuild=1',
    },

553 554 555 556 557
    'mips': {
      'gn_args': 'target_cpu="mips"',
      'gyp_defines': 'target_arch=mips',
    },

558
    'msan': {
559 560 561 562
      'gn_args': ('is_msan=true msan_track_origins=2 '
                  'use_prebuilt_instrumented_libraries=true'),
      'gyp_defines': ('clang=1 msan=1 msan_track_origins=2 '
                      'use_prebuilt_instrumented_libraries=1'),
563 564
    },

machenbach's avatar
machenbach committed
565 566 567 568 569 570 571 572
    'release': {
      'gn_args': 'is_debug=false',
    },

    'release_bot': {
      'mixins': ['release', 'static', 'goma'],
    },

machenbach's avatar
machenbach committed
573 574 575 576
    'release_trybot': {
      'mixins': ['release_bot', 'minimal_symbols', 'dcheck_always_on'],
    },

577 578 579 580
    'shared': {
      'gn_args': 'is_component_build=true',
      'gyp_defines': 'component=shared_library',
    },
machenbach's avatar
machenbach committed
581

582
    'simulate_arm': {
583
      'gn_args': 'target_cpu="x86" v8_target_cpu="arm"',
584 585 586
      'gyp_defines': 'target_arch=ia32 v8_target_arch=arm',
    },

587 588 589 590
    'simulate_arm64': {
      'gn_args': 'target_cpu="x64" v8_target_cpu="arm64"',
      'gyp_defines': 'target_arch=x64 v8_target_arch=arm64',
    },
591 592

    'simulate_mipsel': {
593 594
      'gn_args':
          'target_cpu="x86" v8_target_cpu="mipsel" mips_arch_variant="r2"',
595 596 597 598 599 600 601 602 603
      'gyp_defines': 'target_arch=ia32 v8_target_arch=mipsel',
    },

    'simulate_mips64el': {
      'gn_args': 'target_cpu="x64" v8_target_cpu="mips64el"',
      'gyp_defines': 'target_arch=x64 v8_target_arch=mips64el',
    },

    'simulate_ppc': {
604
      'gn_args': 'target_cpu="x86" v8_target_cpu="ppc"',
605 606 607 608 609 610 611 612 613
      'gyp_defines': 'target_arch=ia32 v8_target_arch=ppc',
    },

    'simulate_ppc64': {
      'gn_args': 'target_cpu="x64" v8_target_cpu="ppc64"',
      'gyp_defines': 'target_arch=x64 v8_target_arch=ppc64',
    },

    'simulate_s390': {
614
      'gn_args': 'target_cpu="x86" v8_target_cpu="s390"',
615 616 617 618 619 620 621 622
      'gyp_defines': 'target_arch=ia32 v8_target_arch=s390',
    },

    'simulate_s390x': {
      'gn_args': 'target_cpu="x64" v8_target_cpu="s390x"',
      'gyp_defines': 'target_arch=x64 v8_target_arch=s390x',
    },

623
    'simulate_x87': {
624
      'gn_args': 'target_cpu="x86" v8_target_cpu="x87"',
625 626 627
      'gyp_defines': 'target_arch=ia32 v8_target_arch=x87',
    },

machenbach's avatar
machenbach committed
628 629 630 631 632 633 634 635 636
    'static': {
      'gn_args': 'is_component_build=false',
      'gyp_defines': 'component=static_library',
    },

    'swarming': {
      'gn_args': 'v8_test_isolation_mode="prepare"',
      'gyp_defines': 'test_isolation_mode=prepare',
    },
machenbach's avatar
machenbach committed
637

638
    # TODO(machenbach): Remove the symbolized config after the bots are gone.
639
    'symbolized': {
640
      'gn_args': 'v8_no_inline=true',
641 642 643 644 645
      'gyp_defines':
        'release_extra_cflags="-fno-inline-functions -fno-inline"',
    },

    'tsan': {
646
      'gn_args': 'is_tsan=true',
647 648 649
      'gyp_defines': 'clang=1 tsan=1',
    },

machenbach's avatar
machenbach committed
650
    'valgrind': {
651
      'gn_args': 'v8_has_valgrind=true',
machenbach's avatar
machenbach committed
652 653 654
      'gyp_defines': 'has_valgrind=1',
    },

655
    'v8_no_i18n': {
656
      'gn_args': 'v8_enable_i18n_support=false icu_use_data_file=false',
657
      'gyp_defines': 'v8_enable_i18n_support=0 icu_use_data_file_flag=0',
658 659
    },

660
    'v8_correctness_fuzzer': {
661
      'gn_args': 'v8_correctness_fuzzer=true v8_multi_arch_build=true',
662 663
    },

664 665 666 667 668
    'v8_disable_inspector': {
      'gn_args': 'v8_enable_inspector=false',
      'gyp_defines': 'v8_enable_inspector=0 ',
    },

669 670 671 672 673
    'v8_enable_disassembler': {
      'gn_args': 'v8_enable_disassembler=true',
      'gyp_defines': 'v8_enable_disassembler=1',
    },

machenbach's avatar
machenbach committed
674
    'v8_enable_slow_dchecks': {
675
      'gn_args': 'v8_enable_slow_dchecks=true',
machenbach's avatar
machenbach committed
676 677 678
      'gyp_defines': 'v8_enable_slow_dchecks=1',
    },

679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698
    'v8_enable_verify_predictable': {
      'gn_args': 'v8_enable_verify_predictable=true',
      'gyp_defines': 'v8_enable_verify_predictable=1',
    },

    'v8_enable_vtunejit': {
      'gn_args': 'v8_enable_vtunejit=true',
      'gyp_defines': 'v8_enable_vtunejit=1',
    },

    'v8_full_debug': {
      'gn_args': 'v8_optimized_debug=false',
      'gyp_defines': 'v8_optimized_debug=0',
    },

    'v8_interpreted_regexp': {
      'gn_args': 'v8_interpreted_regexp=true',
      'gyp_defines': 'v8_interpreted_regexp=1',
    },

machenbach's avatar
machenbach committed
699 700 701 702 703 704
    'v8_optimized_debug': {
      # This is the default in gn for debug.
      'gyp_defines': 'v8_optimized_debug=1',
    },

    'v8_snapshot_custom': {
705 706 707 708
      # GN path is relative to project root.
      'gn_args': 'v8_embed_script="test/mjsunit/mjsunit.js"',

      # Gyp path is relative to src/v8.gyp.
machenbach's avatar
machenbach committed
709 710 711 712 713 714 715 716
      'gyp_defines': 'embed_script=../test/mjsunit/mjsunit.js',
    },

    'v8_snapshot_internal': {
      'gn_args': 'v8_use_external_startup_data=false',
      'gyp_defines': 'v8_use_external_startup_data=0',
    },

717 718 719 720 721 722 723 724 725 726
    'v8_snapshot_none': {
      'gn_args': 'v8_use_snapshot=false',
      'gyp_defines': 'v8_use_snapshot=false',
    },

    'v8_verify_heap': {
      'gn_args': 'v8_enable_verify_heap=true',
      'gyp_defines': 'v8_enable_verify_heap=1',
    },

727 728 729 730
    'v8_verify_csa': {
      'gn_args': 'v8_enable_verify_csa=true',
    },

machenbach's avatar
machenbach committed
731 732 733 734 735
    'x64': {
      'gn_args': 'target_cpu="x64"',
      'gyp_defines': 'target_arch=x64',
    },

736 737 738 739
    'x86': {
      'gn_args': 'target_cpu="x86"',
      'gyp_defines': 'target_arch=ia32',
    },
machenbach's avatar
machenbach committed
740 741
  },
}