1package(default_visibility = ["//visibility:public"]) 2 3# The following line is only here to make this project import into IDEs that embed 4# a Bazel toolchain. 5licenses(["notice"]) 6 7load(":cc_config.bzl", "cc_toolchain_config") 8 9cc_toolchain_suite( 10 name = "toolchain", 11 toolchains = { 12 "armeabi|compiler": ":cc-compiler-armeabi", 13 "local|compiler": ":cc-compiler-local", 14 "armeabi": ":cc-compiler-armeabi", 15 "k8": ":cc-compiler-local", 16 "piii": ":cc-compiler-local", 17 "arm": ":cc-compiler-local", 18 "s390x": ":cc-compiler-local", 19 }, 20) 21 22filegroup( 23 name = "empty", 24 srcs = [], 25) 26 27filegroup( 28 name = "arm_linux_all_files", 29 srcs = [ 30 "@arm_compiler//:compiler_pieces", 31 ], 32) 33 34cc_toolchain_config( 35 name = "local_config", 36 cpu = "local", 37) 38 39cc_toolchain( 40 name = "cc-compiler-local", 41 all_files = ":empty", 42 compiler_files = ":empty", 43 dwp_files = ":empty", 44 linker_files = ":empty", 45 objcopy_files = ":empty", 46 strip_files = ":empty", 47 supports_param_files = 1, 48 toolchain_config = ":local_config", 49 toolchain_identifier = "local_linux", 50) 51 52cc_toolchain_config( 53 name = "armeabi_config", 54 cpu = "armeabi", 55) 56 57cc_toolchain( 58 name = "cc-compiler-armeabi", 59 all_files = ":arm_linux_all_files", 60 compiler_files = ":arm_linux_all_files", 61 dwp_files = ":empty", 62 linker_files = ":arm_linux_all_files", 63 objcopy_files = "arm_linux_all_files", 64 strip_files = "arm_linux_all_files", 65 supports_param_files = 1, 66 toolchain_config = ":armeabi_config", 67 toolchain_identifier = "arm-linux-gnueabihf", 68) 69