Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 2 | |
| 3 | cc_library( |
Brian Silverman | 63889f9 | 2015-11-27 01:33:56 -0500 | [diff] [blame^] | 4 | name = 'empty_main', |
| 5 | srcs = [ 'empty_main.c' ], |
| 6 | ) |
| 7 | |
| 8 | cc_library( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 9 | name = 'malloc', |
Brian Silverman | 63889f9 | 2015-11-27 01:33:56 -0500 | [diff] [blame^] | 10 | deps = select({ |
| 11 | '//tools:has_asan': [], |
| 12 | '//tools:has_tsan': [], |
| 13 | '//conditions:default': ['//third_party/gperftools:tcmalloc'], |
| 14 | }), |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | cc_library( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 18 | name = 'stl', |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 19 | ) |
| 20 | |
| 21 | filegroup( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 22 | name = 'empty', |
| 23 | srcs = [], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 24 | ) |
| 25 | |
| 26 | # This is the entry point for --crosstool_top. Toolchains are found |
| 27 | # by lopping off the name of --crosstool_top and searching for |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 28 | # 'cc-compiler-${CPU}' in this BUILD file, where CPU is the target CPU |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 29 | # specified in --cpu. |
| 30 | # |
| 31 | # This file group should include |
| 32 | # * all cc_toolchain targets supported |
| 33 | # * all file groups that said cc_toolchain might refer to, |
| 34 | # including the default_grte_top setting in the CROSSTOOL |
| 35 | # protobuf. |
| 36 | filegroup( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 37 | name = 'toolchain', |
| 38 | srcs = [ |
| 39 | ':cc-compiler-armeabi-v7a', |
| 40 | ':cc-compiler-local', |
| 41 | ':cc-compiler-k8', |
| 42 | ':cc-compiler-roborio', |
| 43 | '@arm-frc-linux-gnueabi-repo//:compiler_components', |
| 44 | ':roborio-compiler-files', |
| 45 | ], |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 46 | ) |
| 47 | |
| 48 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 49 | name = 'cc-compiler-local', |
| 50 | all_files = ':empty', |
| 51 | compiler_files = ':empty', |
| 52 | cpu = 'local', |
| 53 | dwp_files = ':empty', |
| 54 | dynamic_runtime_libs = [':empty'], |
| 55 | linker_files = ':empty', |
| 56 | objcopy_files = ':empty', |
| 57 | static_runtime_libs = [':empty'], |
| 58 | strip_files = ':empty', |
| 59 | supports_param_files = 1, |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 60 | ) |
| 61 | |
| 62 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 63 | name = 'cc-compiler-armeabi-v7a', |
| 64 | all_files = ':empty', |
| 65 | compiler_files = ':empty', |
| 66 | cpu = 'local', |
| 67 | dwp_files = ':empty', |
| 68 | dynamic_runtime_libs = [':empty'], |
| 69 | linker_files = ':empty', |
| 70 | objcopy_files = ':empty', |
| 71 | static_runtime_libs = [':empty'], |
| 72 | strip_files = ':empty', |
| 73 | supports_param_files = 1, |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 74 | ) |
| 75 | |
| 76 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 77 | name = 'cc-compiler-k8', |
| 78 | all_files = ':empty', |
| 79 | compiler_files = ':empty', |
| 80 | cpu = 'local', |
| 81 | dwp_files = ':empty', |
| 82 | dynamic_runtime_libs = [':empty'], |
| 83 | linker_files = ':empty', |
| 84 | objcopy_files = ':empty', |
| 85 | static_runtime_libs = [':empty'], |
| 86 | strip_files = ':empty', |
| 87 | supports_param_files = 1, |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 88 | ) |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 89 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 90 | filegroup( |
| 91 | name = 'roborio-compiler-files', |
| 92 | srcs = [ |
| 93 | '//tools/cpp/arm-frc-linux-gnueabi:tool-wrappers', |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame] | 94 | '//tools/cpp/arm-frc-linux-gnueabi:as', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 95 | '@arm-frc-linux-gnueabi-repo//:compiler_pieces', |
| 96 | ], |
| 97 | ) |
| 98 | |
| 99 | filegroup( |
| 100 | name = 'roborio_linker_files', |
| 101 | srcs = [ |
| 102 | '//tools/cpp/arm-frc-linux-gnueabi:ld', |
| 103 | '//tools/cpp/arm-frc-linux-gnueabi:ar', |
Brian Silverman | b2215d0 | 2015-11-23 19:10:15 -0500 | [diff] [blame] | 104 | '//tools/cpp/arm-frc-linux-gnueabi:gcc', |
| 105 | '@arm-frc-linux-gnueabi-repo//:compiler_pieces', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 106 | ], |
| 107 | ) |
| 108 | filegroup( |
| 109 | name = 'roborio_compiler_files', |
| 110 | srcs = [ |
| 111 | '//tools/cpp/arm-frc-linux-gnueabi:gcc', |
| 112 | '//tools/cpp/arm-frc-linux-gnueabi:ld', |
| 113 | ], |
| 114 | ) |
| 115 | |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 116 | cc_toolchain( |
Brian Silverman | 660d609 | 2015-11-26 18:41:59 -0500 | [diff] [blame] | 117 | name = 'cc-compiler-roborio', |
| 118 | all_files = ':roborio-compiler-files', |
| 119 | compiler_files = ':roborio_compiler_files', |
| 120 | cpu = 'roborio', |
| 121 | dwp_files = ':empty', |
| 122 | dynamic_runtime_libs = [':empty'], |
| 123 | linker_files = ':roborio_linker_files', |
| 124 | objcopy_files = '//tools/cpp/arm-frc-linux-gnueabi:objcopy', |
| 125 | static_runtime_libs = [':empty'], |
| 126 | strip_files = '//tools/cpp/arm-frc-linux-gnueabi:strip', |
| 127 | supports_param_files = 1, |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 128 | ) |