-
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.
Release toolchain configs for Bazel 0.6.0rc2
Change-Id: Id7eba93cdab28d6a967b9216df2fcf66b65e8813
- Loading branch information
Nicolas Lopez
committed
Sep 21, 2017
1 parent
9dbd803
commit 22383aa
Showing
5 changed files
with
1,169 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,92 @@ | ||
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, | ||
) | ||
|
||
toolchain_type(name = "toolchain_type") | ||
|
||
# A dummy toolchain is necessary to satisfy toolchain resolution until platforms | ||
# are used in c++ by default. | ||
# TODO(b/64754003): Remove once platforms are used in c++ by default. | ||
toolchain( | ||
name = "dummy_cc_toolchain", | ||
toolchain = "dummy_cc_toolchain_impl", | ||
toolchain_type = ":toolchain_type", | ||
) | ||
|
||
load(":dummy_toolchain.bzl", "dummy_toolchain") | ||
|
||
dummy_toolchain(name = "dummy_cc_toolchain_impl") |
Oops, something went wrong.