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 }, 18 { 19 "name": "v8/mksnapshot", 20 "command_prefix": platform.python_bin + " ../../v8/tools/run.py ./mksnapshot", 21 "remote": remote_run, 22 # This action may consume a lot of memory on sanitizer builders. 23 # 49s on n2-custom-3840-2 -> 32s on n2-highmem-8 24 "platform_ref": "large", 25 # TODO: crbug.com/330252330 - specify icudtl.dat to build config. 26 "inputs": [ 27 "./icudtl.dat", 28 ], 29 }, 30 ]) 31 return step_config 32 33v8 = module( 34 "v8", 35 step_config = __step_config, 36) 37