kse-01/tensorflow/third_party/toolchains/cpus/arm/BUILD
github-classroom[bot] 1122cdd8b0
Initial commit
2023-10-09 11:37:31 +00:00

94 lines
2.3 KiB (Stored with Git LFS)
Python

package(default_visibility = ["//visibility:public"])
# The following line is only here to make this project import into IDEs that embed
# a Bazel toolchain.
licenses(["notice"])
load(":cc_config.bzl", "cc_toolchain_config")
cc_toolchain_suite(
name = "toolchain",
toolchains = {
"armeabi|compiler": ":cc-compiler-armeabi",
"local|compiler": ":cc-compiler-local",
"armeabi": ":cc-compiler-armeabi",
"aarch64": ":cc-compiler-aarch64",
"k8": ":cc-compiler-local",
"piii": ":cc-compiler-local",
"arm": ":cc-compiler-local",
"s390x": ":cc-compiler-local",
},
)
filegroup(
name = "empty",
srcs = [],
)
filegroup(
name = "arm_linux_all_files",
srcs = [
"@arm_compiler//:compiler_pieces",
],
)
filegroup(
name = "aarch64_linux_all_files",
srcs = [
"@aarch64_compiler//:aarch64_compiler_pieces",
],
)
cc_toolchain_config(
name = "local_config",
cpu = "local",
)
cc_toolchain(
name = "cc-compiler-local",
all_files = ":empty",
compiler_files = ":empty",
dwp_files = ":empty",
linker_files = ":empty",
objcopy_files = ":empty",
strip_files = ":empty",
supports_param_files = 1,
toolchain_config = ":local_config",
toolchain_identifier = "local_linux",
)
cc_toolchain_config(
name = "armeabi_config",
cpu = "armeabi",
)
cc_toolchain(
name = "cc-compiler-armeabi",
all_files = ":arm_linux_all_files",
compiler_files = ":arm_linux_all_files",
dwp_files = ":empty",
linker_files = ":arm_linux_all_files",
objcopy_files = "arm_linux_all_files",
strip_files = "arm_linux_all_files",
supports_param_files = 1,
toolchain_config = ":armeabi_config",
toolchain_identifier = "arm-linux-gnueabihf",
)
cc_toolchain_config(
name = "aarch64_config",
cpu = "aarch64",
)
cc_toolchain(
name = "cc-compiler-aarch64",
all_files = ":aarch64_linux_all_files",
compiler_files = ":aarch64_linux_all_files",
dwp_files = ":empty",
linker_files = ":aarch64_linux_all_files",
objcopy_files = "aarch64_linux_all_files",
strip_files = "aarch64_linux_all_files",
supports_param_files = 1,
toolchain_config = ":aarch64_config",
toolchain_identifier = "aarch64-linux-gnu",
)