Skip to content

Commit

Permalink
Restore toolchain configs for Bazel 0.5.2 in its old location.
Browse files Browse the repository at this point in the history
This change let old --crosstool_top and --java_toolchain values continue
to work.

Change-Id: I70cd4f02e0be2f33dc445f0e6ce2b2e09600f68c
  • Loading branch information
xingao267 committed Sep 1, 2017
1 parent c6c2ee9 commit 9dbd803
Show file tree
Hide file tree
Showing 5 changed files with 1,034 additions and 0 deletions.
77 changes: 77 additions & 0 deletions configs/debian8_clang/0.1.0/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package(default_visibility = ["//visibility:public"])

cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "empty",
srcs = [],
)

filegroup(
name = "cc_wrapper",
srcs = ["cc_wrapper.sh"],
)

# This is the entry point for --crosstool_top. Toolchains are found
# by lopping off the name of --crosstool_top and searching for
# the "${CPU}" entry in the toolchains attribute.
cc_toolchain_suite(
name = "toolchain",
toolchains = {
"k8|clang": ":cc-compiler-k8",
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
"ios_x86_64|compiler": ":cc-compiler-ios_x86_64",
},
)

cc_toolchain(
name = "cc-compiler-k8",
all_files = ":empty",
compiler_files = ":empty",
cpu = "k8",
dwp_files = ":empty",
dynamic_runtime_libs = [":empty"],
linker_files = ":empty",
objcopy_files = ":empty",
static_runtime_libs = [":empty"],
strip_files = ":empty",
supports_param_files = 1,
)


# Android tooling requires a default toolchain for the armeabi-v7a cpu.
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,
)

# ios crosstool configuration requires a default toolchain for the
# ios_x86_64 cpu.
cc_toolchain(
name = "cc-compiler-ios_x86_64",
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,
)
Loading

0 comments on commit 9dbd803

Please sign in to comment.