TIM-VX/toolchains/gcc-linaro-7.3.1-2018.05-x8.../BUILD.bazel

37 lines
1.3 KiB
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# This is the entry point for --crosstool_top. Toolchains are found
# by lopping off the name of --crosstool_top and searching for
# 'cc-compiler-${CPU}' in this BUILD file, where CPU is the target CPU
# specified in --cpu.
#
# Toochain directory structure
# └── <toolchain_name>
#    ├── toolchain.BUILD
#    ├── BUILD.bazel
#    ├── CROSSTOOL
#    ├── cc_toolchain_config.bzl
#    └── bin
#       ├── BUILD.bazel
#       ├── wrapper-ar
#       ├── wrapper-as
#       ├── wrapper-gcc
#       ├── wrapper-gcov
#       ├── wrapper-ld
#       ├── wrapper-nm
#       ├── wrapper-objcopy
#       ├── wrapper-objdump
#       └── wrapper-strip
#
load("//:cc_toolchain_base.bzl", "register_toolchain")
load(":cc_toolchain_config.bzl", "cc_toolchain_config")
# Register toolchain
# will generate a `cc_toolchain_suite` named `toolchain`
# `toolchain_name` must be identical with toolchain directory name and http_archive name in `toolchains.bzl`
register_toolchain(
toolchain_name = "gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu",
target_cpu = "aarch64",
compiler = "gcc",
cc_toolchain_config = cc_toolchain_config,
)