blob: c936d2746f10765a12ff160c7388e7c22c7c9cd8 [file] [log] [blame]
jcaterf5c8c0b2018-03-27 07:22:35 -07001# Copyright 2018 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010015package(default_visibility = ["//visibility:public"])
16
hlopko06a88512018-03-06 06:16:38 -080017licenses(["notice"]) # Apache 2.0
hlopko903b4792018-03-06 01:27:56 -080018
rosica71bc38f2019-02-04 02:39:30 -080019load(":cc_toolchain_config.bzl", "cc_toolchain_config")
oquenchil96068872019-07-08 07:01:39 -070020load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
rosica71bc38f2019-02-04 02:39:30 -080021
jcaterf5c8c0b2018-03-27 07:22:35 -070022# The toolchain type used to distinguish cc toolchains.
jcaterbf1ac7e2018-05-29 08:54:02 -070023toolchain_type(name = "toolchain_type")
jcaterf5c8c0b2018-03-27 07:22:35 -070024
25# It is frequently necessary to constrain platforms based on the cc compiler type.
26constraint_setting(name = "cc_compiler")
27
28constraint_value(
29 name = "clang",
30 constraint_setting = ":cc_compiler",
31)
32
33constraint_value(
34 name = "gcc",
35 constraint_setting = ":cc_compiler",
36)
37
38constraint_value(
39 name = "msvc",
40 constraint_setting = ":cc_compiler",
41)
42
43constraint_value(
Yun Peng12ebd7b2019-07-19 07:05:16 -070044 name = "clang-cl",
45 constraint_setting = ":cc_compiler",
46)
47
48constraint_value(
jcaterf5c8c0b2018-03-27 07:22:35 -070049 name = "mingw",
50 constraint_setting = ":cc_compiler",
51)
52
53constraint_value(
54 name = "msys",
55 constraint_setting = ":cc_compiler",
56)
57
lberki528a1ea2017-07-13 17:11:18 +020058cc_toolchain_alias(name = "current_cc_toolchain")
59
dbabkin1d3b6c12018-06-28 06:39:03 -070060cc_host_toolchain_alias(name = "current_cc_host_toolchain")
61
62cc_libc_top_alias(name = "current_libc_top")
63
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010064cc_library(
65 name = "malloc",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010066)
67
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010068filegroup(
ajmichaelbc1e2b02018-03-07 07:30:48 -080069 name = "grep-includes",
70 srcs = ["grep-includes.sh"],
71)
72
73filegroup(
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010074 name = "empty",
75 srcs = [],
76)
77
rosicac5ebfcf2019-06-04 01:47:17 -070078config_setting(
79 name = "disable_static_cc_toolchains",
80 values = {
81 "incompatible_disable_static_cc_toolchains": "true",
82 },
83)
84
Han-Wen Nienhuys310c6312015-04-08 15:35:26 +000085# This is the entry point for --crosstool_top. Toolchains are found
86# by lopping off the name of --crosstool_top and searching for
87# "cc-compiler-${CPU}" in this BUILD file, where CPU is the target CPU
88# specified in --cpu.
89#
90# This file group should include
91# * all cc_toolchain targets supported
jcater58a72b22018-11-05 09:11:59 -080092# * all file groups that said cc_toolchain might refer to
Laurent Le Brun08849b22016-09-20 12:21:32 +000093alias(
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010094 name = "toolchain",
Laurent Le Brun08849b22016-09-20 12:21:32 +000095 actual = "//external:cc_toolchain",
Damien Martin-Guillerezbe5b2eb2016-03-02 16:08:07 +000096)
97
98# Hardcoded toolchain, legacy behaviour.
Lukacs Berki180d1b52016-09-06 14:55:21 +000099cc_toolchain_suite(
Damien Martin-Guillerezbe5b2eb2016-03-02 16:08:07 +0000100 name = "default-toolchain",
Lukacs Berki180d1b52016-09-06 14:55:21 +0000101 toolchains = {
102 "armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
103 "darwin|compiler": ":cc-compiler-darwin",
104 "freebsd|compiler": ":cc-compiler-freebsd",
John Caterf7e5aef2018-11-13 08:33:20 -0800105 "local|compiler": ":cc-compiler-local",
Lukacs Berki180d1b52016-09-06 14:55:21 +0000106 "x64_windows|compiler": ":cc-compiler-x64_windows",
107 "x64_windows_msvc|compiler": ":cc-compiler-x64_windows_msvc",
clyang8221941fe2019-04-24 04:16:13 -0700108 "s390x|compiler": ":cc-compiler-s390x",
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000109 "ppc|compiler": ":cc-compiler-ppc",
John Caterf7e5aef2018-11-13 08:33:20 -0800110 "k8": ":cc-compiler-local",
111 "piii": ":cc-compiler-local",
112 "arm": ":cc-compiler-local",
113 "aarch64": ":cc-compiler-local",
114 "s390x": ":cc-compiler-local",
115 "ppc": ":cc-compiler-local",
116 "ppc64": ":cc-compiler-local",
rosica547bf422018-09-06 02:10:02 -0700117 "darwin": ":cc-compiler-darwin",
118 "freebsd": ":cc-compiler-freebsd",
119 "armeabi-v7a": ":cc-compiler-armeabi-v7a",
120 "x64_windows": ":cc-compiler-x64_windows",
121 "x64_windows_msvc": ":cc-compiler-x64_windows_msvc",
Lukacs Berki180d1b52016-09-06 14:55:21 +0000122 },
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100123)
124
125cc_toolchain(
126 name = "cc-compiler-local",
127 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800128 ar_files = ":empty",
129 as_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100130 compiler_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100131 dwp_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100132 linker_files = ":empty",
133 objcopy_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100134 strip_files = ":empty",
Han-Wen Nienhuysfc911c62015-10-12 13:10:10 +0000135 supports_param_files = 1,
rosica71bc38f2019-02-04 02:39:30 -0800136 toolchain_config = ":local_linux",
hlopkoc3fb1db2018-10-09 20:40:58 -0700137 toolchain_identifier = "local_linux",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100138)
139
rosica71bc38f2019-02-04 02:39:30 -0800140cc_toolchain_config(
141 name = "local_linux",
142 compiler = "compiler",
143 cpu = "local",
rosicac5ebfcf2019-06-04 01:47:17 -0700144 disable_static_cc_toolchains = select({
145 ":disable_static_cc_toolchains": True,
146 "//conditions:default": False,
147 }),
rosica71bc38f2019-02-04 02:39:30 -0800148)
149
jcaterf5c8c0b2018-03-27 07:22:35 -0700150toolchain(
151 name = "cc-toolchain-local",
152 exec_compatible_with = [
jcaterf5c8c0b2018-03-27 07:22:35 -0700153 ],
154 target_compatible_with = [
jcaterf5c8c0b2018-03-27 07:22:35 -0700155 ],
156 toolchain = ":cc-compiler-local",
157 toolchain_type = ":toolchain_type",
158)
159
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100160cc_toolchain(
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000161 name = "cc-compiler-ppc",
162 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800163 ar_files = ":empty",
164 as_files = ":empty",
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000165 compiler_files = ":empty",
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000166 dwp_files = ":empty",
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000167 linker_files = ":empty",
168 objcopy_files = ":empty",
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000169 strip_files = ":empty",
170 supports_param_files = 1,
rosica71bc38f2019-02-04 02:39:30 -0800171 toolchain_config = ":local_linux",
hlopkoc3fb1db2018-10-09 20:40:58 -0700172 toolchain_identifier = "local_linux",
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000173)
174
jcaterf5c8c0b2018-03-27 07:22:35 -0700175toolchain(
176 name = "cc-toolchain-ppc",
177 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700178 "@platforms//cpu:ppc",
jcaterf5c8c0b2018-03-27 07:22:35 -0700179 ],
180 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700181 "@platforms//cpu:ppc",
jcaterf5c8c0b2018-03-27 07:22:35 -0700182 ],
183 toolchain = ":cc-compiler-ppc",
184 toolchain_type = ":toolchain_type",
185)
186
Nishidha Panpaliyaaaee64e2016-12-20 18:19:43 +0000187cc_toolchain(
clyang8221941fe2019-04-24 04:16:13 -0700188 name = "cc-compiler-s390x",
189 all_files = ":empty",
190 ar_files = ":empty",
191 as_files = ":empty",
192 compiler_files = ":empty",
clyang8221941fe2019-04-24 04:16:13 -0700193 dwp_files = ":empty",
194 linker_files = ":empty",
195 objcopy_files = ":empty",
196 strip_files = ":empty",
197 supports_param_files = 1,
198 toolchain_config = ":local_linux",
199 toolchain_identifier = "local_linux",
200)
201
202toolchain(
203 name = "cc-toolchain-s390x",
204 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700205 "@platforms//cpu:s390x",
clyang8221941fe2019-04-24 04:16:13 -0700206 ],
207 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700208 "@platforms//cpu:s390x",
clyang8221941fe2019-04-24 04:16:13 -0700209 ],
210 toolchain = ":cc-compiler-s390x",
211 toolchain_type = ":toolchain_type",
212)
213
214cc_toolchain(
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000215 name = "cc-compiler-armeabi-v7a",
216 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800217 ar_files = ":empty",
218 as_files = ":empty",
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000219 compiler_files = ":empty",
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000220 dwp_files = ":empty",
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000221 linker_files = ":empty",
222 objcopy_files = ":empty",
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000223 strip_files = ":empty",
Han-Wen Nienhuysfc911c62015-10-12 13:10:10 +0000224 supports_param_files = 1,
rosica71bc38f2019-02-04 02:39:30 -0800225 toolchain_config = ":local_linux",
hlopkoc3fb1db2018-10-09 20:40:58 -0700226 toolchain_identifier = "local_linux",
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000227)
228
jcaterf5c8c0b2018-03-27 07:22:35 -0700229toolchain(
230 name = "cc-toolchain-armeabi-v7a",
231 exec_compatible_with = [
232 ],
233 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700234 "@platforms//cpu:arm",
235 "@platforms//os:android",
jcaterf5c8c0b2018-03-27 07:22:35 -0700236 ],
237 toolchain = ":cc-compiler-armeabi-v7a",
238 toolchain_type = ":toolchain_type",
239)
240
Lukacs Berkia93c63b2015-07-29 15:32:19 +0000241cc_toolchain(
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100242 name = "cc-compiler-k8",
243 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800244 ar_files = ":empty",
245 as_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100246 compiler_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100247 dwp_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100248 linker_files = ":empty",
249 objcopy_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100250 strip_files = ":empty",
Han-Wen Nienhuysfc911c62015-10-12 13:10:10 +0000251 supports_param_files = 1,
rosica71bc38f2019-02-04 02:39:30 -0800252 toolchain_config = ":local_linux",
hlopkoc3fb1db2018-10-09 20:40:58 -0700253 toolchain_identifier = "local_linux",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100254)
255
jcaterf5c8c0b2018-03-27 07:22:35 -0700256toolchain(
257 name = "cc-toolchain-k8",
258 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700259 "@platforms//cpu:x86_64",
260 "@platforms//os:linux",
jcaterf5c8c0b2018-03-27 07:22:35 -0700261 ],
262 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700263 "@platforms//cpu:x86_64",
264 "@platforms//os:linux",
jcaterf5c8c0b2018-03-27 07:22:35 -0700265 ],
266 toolchain = ":cc-compiler-k8",
267 toolchain_type = ":toolchain_type",
268)
269
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100270cc_toolchain(
271 name = "cc-compiler-darwin",
Oleg Ponomarevd1388b82018-03-05 03:41:27 -0800272 all_files = ":osx_wrapper",
Googler28953cb2018-12-05 10:46:00 -0800273 ar_files = ":empty",
rosica44a961b2019-06-06 00:17:06 -0700274 as_files = ":osx_wrapper",
Oleg Ponomarevd1388b82018-03-05 03:41:27 -0800275 compiler_files = ":osx_wrapper",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100276 dwp_files = ":empty",
Oleg Ponomarevd1388b82018-03-05 03:41:27 -0800277 linker_files = ":osx_wrapper",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100278 objcopy_files = ":empty",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100279 strip_files = ":empty",
280 supports_param_files = 0,
rosica71bc38f2019-02-04 02:39:30 -0800281 toolchain_config = ":local_darwin",
hlopkoc3fb1db2018-10-09 20:40:58 -0700282 toolchain_identifier = "local_darwin",
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +0100283)
Damien Martin-Guillerez5cbd5a42015-03-24 21:55:19 +0000284
rosica71bc38f2019-02-04 02:39:30 -0800285cc_toolchain_config(
286 name = "local_darwin",
287 compiler = "compiler",
288 cpu = "darwin",
rosicac5ebfcf2019-06-04 01:47:17 -0700289 disable_static_cc_toolchains = select({
290 ":disable_static_cc_toolchains": True,
291 "//conditions:default": False,
292 }),
rosica71bc38f2019-02-04 02:39:30 -0800293)
294
jcaterf5c8c0b2018-03-27 07:22:35 -0700295toolchain(
296 name = "cc-toolchain-darwin",
297 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700298 "@platforms//cpu:x86_64",
299 "@platforms//os:osx",
jcaterf5c8c0b2018-03-27 07:22:35 -0700300 ],
301 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700302 "@platforms//cpu:x86_64",
303 "@platforms//os:osx",
jcaterf5c8c0b2018-03-27 07:22:35 -0700304 ],
305 toolchain = ":cc-compiler-darwin",
306 toolchain_type = ":toolchain_type",
307)
308
Doug Rabson709bc612015-08-25 14:12:00 +0000309cc_toolchain(
310 name = "cc-compiler-freebsd",
311 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800312 ar_files = ":empty",
313 as_files = ":empty",
Doug Rabson709bc612015-08-25 14:12:00 +0000314 compiler_files = ":empty",
Doug Rabson709bc612015-08-25 14:12:00 +0000315 dwp_files = ":empty",
Doug Rabson709bc612015-08-25 14:12:00 +0000316 linker_files = ":empty",
317 objcopy_files = ":empty",
Doug Rabson709bc612015-08-25 14:12:00 +0000318 strip_files = ":empty",
319 supports_param_files = 0,
rosica71bc38f2019-02-04 02:39:30 -0800320 toolchain_config = ":local_freebsd",
hlopkoc3fb1db2018-10-09 20:40:58 -0700321 toolchain_identifier = "local_freebsd",
Doug Rabson709bc612015-08-25 14:12:00 +0000322)
323
rosica71bc38f2019-02-04 02:39:30 -0800324cc_toolchain_config(
325 name = "local_freebsd",
326 compiler = "compiler",
327 cpu = "freebsd",
rosicac5ebfcf2019-06-04 01:47:17 -0700328 disable_static_cc_toolchains = select({
329 ":disable_static_cc_toolchains": True,
330 "//conditions:default": False,
331 }),
rosica71bc38f2019-02-04 02:39:30 -0800332)
333
jcaterf5c8c0b2018-03-27 07:22:35 -0700334toolchain(
335 name = "cc-toolchain-freebsd",
336 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700337 "@platforms//cpu:x86_64",
338 "@platforms//os:freebsd",
jcaterf5c8c0b2018-03-27 07:22:35 -0700339 ],
340 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700341 "@platforms//cpu:x86_64",
342 "@platforms//os:freebsd",
jcaterf5c8c0b2018-03-27 07:22:35 -0700343 ],
344 toolchain = ":cc-compiler-freebsd",
345 toolchain_type = ":toolchain_type",
346)
347
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000348cc_toolchain(
349 name = "cc-compiler-x64_windows",
350 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800351 ar_files = ":empty",
352 as_files = ":empty",
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000353 compiler_files = ":empty",
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000354 dwp_files = ":empty",
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000355 linker_files = ":empty",
356 objcopy_files = ":empty",
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000357 strip_files = ":empty",
358 supports_param_files = 0,
rosica71bc38f2019-02-04 02:39:30 -0800359 toolchain_config = ":local_windows_msys64",
hlopkoc3fb1db2018-10-09 20:40:58 -0700360 toolchain_identifier = "local_windows_msys64",
Dmitry Lomov458ccd02016-02-02 20:30:32 +0000361)
362
rosica71bc38f2019-02-04 02:39:30 -0800363cc_toolchain_config(
364 name = "local_windows_msys64",
365 compiler = "windows_msys64",
366 cpu = "x64_windows",
rosicac5ebfcf2019-06-04 01:47:17 -0700367 disable_static_cc_toolchains = select({
368 ":disable_static_cc_toolchains": True,
369 "//conditions:default": False,
370 }),
rosica71bc38f2019-02-04 02:39:30 -0800371)
372
jcaterf5c8c0b2018-03-27 07:22:35 -0700373toolchain(
374 name = "cc-toolchain-x64_windows",
375 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700376 "@platforms//cpu:x86_64",
377 "@platforms//os:windows",
jcaterf5c8c0b2018-03-27 07:22:35 -0700378 ],
379 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700380 "@platforms//cpu:x86_64",
381 "@platforms//os:windows",
jcaterf5c8c0b2018-03-27 07:22:35 -0700382 ],
383 toolchain = ":cc-compiler-x64_windows",
384 toolchain_type = ":toolchain_type",
385)
386
Yun Peng114ead32016-04-07 16:39:19 +0000387cc_toolchain(
388 name = "cc-compiler-x64_windows_msvc",
Marcel Hlopko221c67f2019-05-30 07:38:08 -0700389 all_files = ":empty",
Googler28953cb2018-12-05 10:46:00 -0800390 ar_files = ":empty",
391 as_files = ":empty",
Marcel Hlopko221c67f2019-05-30 07:38:08 -0700392 compiler_files = ":empty",
Yun Peng114ead32016-04-07 16:39:19 +0000393 dwp_files = ":empty",
Yun Peng114ead32016-04-07 16:39:19 +0000394 linker_files = ":empty",
395 objcopy_files = ":empty",
Yun Peng114ead32016-04-07 16:39:19 +0000396 strip_files = ":empty",
Yun Peng57be3442016-04-25 14:08:41 +0000397 supports_param_files = 1,
rosica71bc38f2019-02-04 02:39:30 -0800398 toolchain_config = ":vc_14_0_x64",
hlopkoc3fb1db2018-10-09 20:40:58 -0700399 toolchain_identifier = "vc_14_0_x64",
Yun Peng114ead32016-04-07 16:39:19 +0000400)
401
rosica71bc38f2019-02-04 02:39:30 -0800402cc_toolchain_config(
403 name = "vc_14_0_x64",
404 compiler = "cl",
405 cpu = "x64_windows_msvc",
rosicac5ebfcf2019-06-04 01:47:17 -0700406 disable_static_cc_toolchains = select({
407 ":disable_static_cc_toolchains": True,
408 "//conditions:default": False,
409 }),
rosica71bc38f2019-02-04 02:39:30 -0800410)
411
jcaterf5c8c0b2018-03-27 07:22:35 -0700412toolchain(
413 name = "cc-toolchain-x64_windows_msvc",
414 exec_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700415 "@platforms//cpu:x86_64",
416 "@platforms//os:windows",
jcaterf5c8c0b2018-03-27 07:22:35 -0700417 ":msvc",
418 ],
419 target_compatible_with = [
hlopko71a213c2019-06-21 02:01:33 -0700420 "@platforms//cpu:x86_64",
421 "@platforms//os:windows",
jcaterf5c8c0b2018-03-27 07:22:35 -0700422 ],
423 toolchain = ":cc-compiler-x64_windows_msvc",
424 toolchain_type = ":toolchain_type",
425)
426
Yun Peng114ead32016-04-07 16:39:19 +0000427filegroup(
Damien Martin-Guillerez5cbd5a42015-03-24 21:55:19 +0000428 name = "srcs",
Loo Rong Jie68611b32018-10-15 07:10:41 -0700429 srcs = glob(["**"]) + [
430 "//tools/cpp/runfiles:srcs",
431 ],
432)
433
434filegroup(
435 name = "embedded_tools",
436 srcs = glob(["**"]) + [
437 "//tools/cpp/runfiles:embedded_tools",
438 ],
Damien Martin-Guillerez5cbd5a42015-03-24 21:55:19 +0000439)
Marcel Hlopko74b94322016-10-11 15:30:49 +0000440
441filegroup(
Lukacs Berki76cb02e2017-02-17 14:06:11 +0000442 name = "interface_library_builder",
443 srcs = ["build_interface_so"],
hlopko06a88512018-03-06 06:16:38 -0800444)
445
446filegroup(
447 name = "osx_wrapper",
448 srcs = ["osx_cc_wrapper.sh"],
Lukacs Berki76cb02e2017-02-17 14:06:11 +0000449)
450
451filegroup(
Marcel Hlopko74b94322016-10-11 15:30:49 +0000452 name = "link_dynamic_library",
453 srcs = ["link_dynamic_library.sh"],
454)
cpeyserd852e482017-09-07 22:16:06 +0200455
Oleg Ponomarevd1388b82018-03-05 03:41:27 -0800456filegroup(
hlopko06a88512018-03-06 06:16:38 -0800457 name = "lib_cc_configure",
458 srcs = ["lib_cc_configure.bzl"],
Oleg Ponomarevd1388b82018-03-05 03:41:27 -0800459)
460
cparsons1ba9f0ff2019-08-29 13:45:45 -0700461filegroup(
462 name = "bzl_srcs",
463 srcs = glob(["*.bzl"]),
464 visibility = ["//tools:__pkg__"],
465)
466
rosica80442862018-05-28 05:59:33 -0700467load(":compiler_flag.bzl", "compiler_flag")
468
469compiler_flag(name = "compiler")
John Caterfc586a82019-03-19 07:36:56 -0700470
471# Target that can provide the CC_FLAGS variable based on the current
472# cc_toolchain.
473load("@bazel_tools//tools/cpp:cc_flags_supplier.bzl", "cc_flags_supplier")
474
475cc_flags_supplier(name = "cc_flags")