-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore toolchain configs for Bazel 0.5.2 in its old location.
This change let old --crosstool_top and --java_toolchain values continue to work. Change-Id: I70cd4f02e0be2f33dc445f0e6ce2b2e09600f68c
- Loading branch information
Showing
5 changed files
with
1,034 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
Oops, something went wrong.