Files
carbon-lang/scripts/run_bazelisk.py
T
Jon Ross-Perkins 407b9e4dcd Add a run_bazelisk wrapper script for linux. (#4129)
I was considering making a "/bazel" alias for this, but I'm really on
the fence about whether that's a good choice. However, I do think this
is good to have to simplify installs.

Fixes #3071 and #3896
2024-07-15 17:18:18 +00:00

24 lines
507 B
Python
Executable File

#!/usr/bin/env python3
"""Runs bazelisk with arbitrary arguments."""
__copyright__ = """
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
Exceptions. See /LICENSE for license information.
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""
import os
import sys
import scripts_utils
def main() -> None:
bazelisk = scripts_utils.get_release(scripts_utils.Release.BAZELISK)
os.execv(bazelisk, [bazelisk] + sys.argv[1:])
if __name__ == "__main__":
main()