| # This file is licensed under the Apache License v2.0 with LLVM Exceptions. |
| # See https://llvm.org/LICENSE.txt for license information. |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| """Creates a copy of a binary, giving it a different basename. |
| name = "my_binary_other_name", |
| binary = ":some_cc_binary", |
| def _binary_alias_impl(ctx): |
| target_file = ctx.executable.binary, |
| output = ctx.outputs.executable, |
| executable = ctx.outputs.executable, |
| runfiles = ctx.attr.binary[DefaultInfo].default_runfiles, |