1# -*- bazel-starlark -*- 2# Copyright 2023 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 nasm/linux.""" 6 7load("@builtin//path.star", "path") 8load("@builtin//struct.star", "module") 9 10def __filegroups(ctx): 11 return {} 12 13__handlers = {} 14 15def __step_config(ctx, step_config): 16 remote_run = True # Turn this to False when you do file access trace. 17 rules = [] 18 for toolchain in ["", "clang_x64"]: 19 nasm_path = path.join(toolchain, "nasm") 20 rules.append({ 21 "name": path.join("nasm", toolchain), 22 "command_prefix": "python3 ../../build/gn_run_binary.py " + nasm_path, 23 "remote": remote_run, 24 # chromeos generates default.profraw? 25 "ignore_extra_output_pattern": ".*default.profraw", 26 "timeout": "2m", 27 }) 28 step_config["rules"].extend(rules) 29 return step_config 30 31nasm = module( 32 "nasm", 33 step_config = __step_config, 34 filegroups = __filegroups, 35 handlers = __handlers, 36) 37