xref: /aosp_15_r20/external/angle/build/config/siso/v8.star (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# -*- bazel-starlark -*-
2*8975f5c5SAndroid Build Coastguard Worker# Copyright 2024 The Chromium Authors
3*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
4*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file.
5*8975f5c5SAndroid Build Coastguard Worker"""Siso configuration for V8 builds."""
6*8975f5c5SAndroid Build Coastguard Worker
7*8975f5c5SAndroid Build Coastguard Workerload("@builtin//struct.star", "module")
8*8975f5c5SAndroid Build Coastguard Workerload("./platform.star", "platform")
9*8975f5c5SAndroid Build Coastguard Worker
10*8975f5c5SAndroid Build Coastguard Workerdef __step_config(ctx, step_config):
11*8975f5c5SAndroid Build Coastguard Worker    remote_run = True  # Turn this to False when you do file access trace.
12*8975f5c5SAndroid Build Coastguard Worker    step_config["rules"].extend([
13*8975f5c5SAndroid Build Coastguard Worker        {
14*8975f5c5SAndroid Build Coastguard Worker            "name": "v8/torque",
15*8975f5c5SAndroid Build Coastguard Worker            "command_prefix": platform.python_bin + " ../../v8/tools/run.py ./torque",
16*8975f5c5SAndroid Build Coastguard Worker            "remote": remote_run,
17*8975f5c5SAndroid Build Coastguard Worker            "timeout": "2m",
18*8975f5c5SAndroid Build Coastguard Worker        },
19*8975f5c5SAndroid Build Coastguard Worker        {
20*8975f5c5SAndroid Build Coastguard Worker            "name": "v8/mksnapshot",
21*8975f5c5SAndroid Build Coastguard Worker            "command_prefix": platform.python_bin + " ../../v8/tools/run.py ./mksnapshot",
22*8975f5c5SAndroid Build Coastguard Worker            "remote": remote_run,
23*8975f5c5SAndroid Build Coastguard Worker            "timeout": "2m",
24*8975f5c5SAndroid Build Coastguard Worker            # This action may consume a lot of memory on sanitizer builders.
25*8975f5c5SAndroid Build Coastguard Worker            # 49s on n2-custom-3840-2 -> 32s on n2-highmem-8
26*8975f5c5SAndroid Build Coastguard Worker            "platform_ref": "large",
27*8975f5c5SAndroid Build Coastguard Worker            # The outputs of mksnapshot are often required for running the
28*8975f5c5SAndroid Build Coastguard Worker            # following steps.
29*8975f5c5SAndroid Build Coastguard Worker            "output_local": True,
30*8975f5c5SAndroid Build Coastguard Worker        },
31*8975f5c5SAndroid Build Coastguard Worker    ])
32*8975f5c5SAndroid Build Coastguard Worker    return step_config
33*8975f5c5SAndroid Build Coastguard Worker
34*8975f5c5SAndroid Build Coastguard Workerv8 = module(
35*8975f5c5SAndroid Build Coastguard Worker    "v8",
36*8975f5c5SAndroid Build Coastguard Worker    step_config = __step_config,
37*8975f5c5SAndroid Build Coastguard Worker)
38