blob: f6203eb15aa1c5f291e5e877bd7eb4063339205d [file] [log] [blame]
package(default_visibility = ['//visibility:public'])
cc_library(
name = 'empty_main',
srcs = [ 'empty_main.c' ],
)
cc_library(
name = 'malloc',
deps = select({
'//tools:has_asan': [],
'//tools:has_tsan': [],
'//conditions:default': ['//third_party/gperftools:tcmalloc'],
}),
)
cc_library(
name = 'stl',
)
filegroup(
name = 'empty',
srcs = [],
)
# 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.
#
# This file group should include
# * all cc_toolchain targets supported
# * all file groups that said cc_toolchain might refer to,
# including the default_grte_top setting in the CROSSTOOL
# protobuf.
filegroup(
name = 'toolchain',
srcs = [
':cc-compiler-armeabi-v7a',
':cc-compiler-local',
':cc-compiler-k8',
':cc-compiler-roborio',
'@arm-frc-linux-gnueabi-repo//:compiler_components',
':roborio-compiler-files',
],
)
cc_toolchain(
name = 'cc-compiler-local',
all_files = ':empty',
compiler_files = ':empty',
cpu = 'local',
dwp_files = ':empty',
dynamic_runtime_libs = [':empty'],
linker_files = ':empty',
objcopy_files = ':empty',
static_runtime_libs = [':empty'],
strip_files = ':empty',
supports_param_files = 1,
)
cc_toolchain(
name = 'cc-compiler-armeabi-v7a',
all_files = ':empty',
compiler_files = ':empty',
cpu = 'local',
dwp_files = ':empty',
dynamic_runtime_libs = [':empty'],
linker_files = ':empty',
objcopy_files = ':empty',
static_runtime_libs = [':empty'],
strip_files = ':empty',
supports_param_files = 1,
)
cc_toolchain(
name = 'cc-compiler-k8',
all_files = ':empty',
compiler_files = ':empty',
cpu = 'local',
dwp_files = ':empty',
dynamic_runtime_libs = [':empty'],
linker_files = ':empty',
objcopy_files = ':empty',
static_runtime_libs = [':empty'],
strip_files = ':empty',
supports_param_files = 1,
)
filegroup(
name = 'roborio-compiler-files',
srcs = [
'//tools/cpp/arm-frc-linux-gnueabi:tool-wrappers',
'//tools/cpp/arm-frc-linux-gnueabi:as',
'@arm-frc-linux-gnueabi-repo//:compiler_pieces',
],
)
filegroup(
name = 'roborio_linker_files',
srcs = [
'//tools/cpp/arm-frc-linux-gnueabi:ld',
'//tools/cpp/arm-frc-linux-gnueabi:ar',
'//tools/cpp/arm-frc-linux-gnueabi:gcc',
'@arm-frc-linux-gnueabi-repo//:compiler_pieces',
],
)
filegroup(
name = 'roborio_compiler_files',
srcs = [
'//tools/cpp/arm-frc-linux-gnueabi:gcc',
'//tools/cpp/arm-frc-linux-gnueabi:ld',
],
)
cc_toolchain(
name = 'cc-compiler-roborio',
all_files = ':roborio-compiler-files',
compiler_files = ':roborio_compiler_files',
cpu = 'roborio',
dwp_files = ':empty',
dynamic_runtime_libs = [':empty'],
linker_files = ':roborio_linker_files',
objcopy_files = '//tools/cpp/arm-frc-linux-gnueabi:objcopy',
static_runtime_libs = [':empty'],
strip_files = '//tools/cpp/arm-frc-linux-gnueabi:strip',
supports_param_files = 1,
)