tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nasm_linux.star (1082B)


      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 
      7 load("@builtin//path.star", "path")
      8 load("@builtin//struct.star", "module")
      9 
     10 def __filegroups(ctx):
     11     return {}
     12 
     13 __handlers = {}
     14 
     15 def __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 
     31 nasm = module(
     32     "nasm",
     33     step_config = __step_config,
     34     filegroups = __filegroups,
     35     handlers = __handlers,
     36 )