Skip to content

Commit c6c2ee9

Browse files
committed
Release toolchain configs for Bazel 0.5.4.
Change-Id: I80670c819550a5f40f730c0b3082146ac04c580c
1 parent a13cc22 commit c6c2ee9

5 files changed

Lines changed: 1060 additions & 0 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package(default_visibility = ["//visibility:public"])
2+
3+
cc_library(
4+
name = "malloc",
5+
)
6+
7+
cc_library(
8+
name = "stl",
9+
)
10+
11+
filegroup(
12+
name = "empty",
13+
srcs = [],
14+
)
15+
16+
filegroup(
17+
name = "cc_wrapper",
18+
srcs = ["cc_wrapper.sh"],
19+
)
20+
21+
# This is the entry point for --crosstool_top. Toolchains are found
22+
# by lopping off the name of --crosstool_top and searching for
23+
# the "${CPU}" entry in the toolchains attribute.
24+
cc_toolchain_suite(
25+
name = "toolchain",
26+
toolchains = {
27+
"k8|clang": ":cc-compiler-k8",
28+
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
29+
"ios_x86_64|compiler": ":cc-compiler-ios_x86_64",
30+
},
31+
)
32+
33+
cc_toolchain(
34+
name = "cc-compiler-k8",
35+
all_files = ":empty",
36+
compiler_files = ":empty",
37+
cpu = "k8",
38+
dwp_files = ":empty",
39+
dynamic_runtime_libs = [":empty"],
40+
linker_files = ":empty",
41+
objcopy_files = ":empty",
42+
static_runtime_libs = [":empty"],
43+
strip_files = ":empty",
44+
supports_param_files = 1,
45+
)
46+
47+
48+
# Android tooling requires a default toolchain for the armeabi-v7a cpu.
49+
cc_toolchain(
50+
name = "cc-compiler-armeabi-v7a",
51+
all_files = ":empty",
52+
compiler_files = ":empty",
53+
cpu = "local",
54+
dwp_files = ":empty",
55+
dynamic_runtime_libs = [":empty"],
56+
linker_files = ":empty",
57+
objcopy_files = ":empty",
58+
static_runtime_libs = [":empty"],
59+
strip_files = ":empty",
60+
supports_param_files = 1,
61+
)
62+
63+
# ios crosstool configuration requires a default toolchain for the
64+
# ios_x86_64 cpu.
65+
cc_toolchain(
66+
name = "cc-compiler-ios_x86_64",
67+
all_files = ":empty",
68+
compiler_files = ":empty",
69+
cpu = "local",
70+
dwp_files = ":empty",
71+
dynamic_runtime_libs = [":empty"],
72+
linker_files = ":empty",
73+
objcopy_files = ":empty",
74+
static_runtime_libs = [":empty"],
75+
strip_files = ":empty",
76+
supports_param_files = 1,
77+
)

0 commit comments

Comments
 (0)