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