This is an automated email from the ASF dual-hosted git repository. huijun pushed a commit to branch huijunwu/20200709toolstravistoolchain in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit e4cea05fe5085ac1ba4240c5bedce2ac6889750a Author: huijunwu <[email protected]> AuthorDate: Fri Jul 10 03:52:41 2020 +0000 fixtoolchain --- tools/travis/toolchain/BUILD | 11 +++++------ tools/travis/toolchain/cc_toolchain_config.bzl | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/tools/travis/toolchain/BUILD b/tools/travis/toolchain/BUILD index d1837a9..157a1d8 100644 --- a/tools/travis/toolchain/BUILD +++ b/tools/travis/toolchain/BUILD @@ -1,4 +1,5 @@ load("@rules_cc//cc:defs.bzl", "cc_toolchain") +load(":cc_toolchain_config.bzl", "cc_toolchain_config") licenses(["restricted"]) @@ -27,32 +28,30 @@ filegroup( ], ) +cc_toolchain_config(name = "k8_toolchain_config") + cc_toolchain( name = "cc-compiler-local", 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 = 0, + toolchain_config = ":k8_toolchain_config", ) cc_toolchain( name = "cc-compiler-k8", 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 = 0, + toolchain_config = ":k8_toolchain_config", ) filegroup( diff --git a/tools/travis/toolchain/cc_toolchain_config.bzl b/tools/travis/toolchain/cc_toolchain_config.bzl new file mode 100644 index 0000000..d8f0a3d --- /dev/null +++ b/tools/travis/toolchain/cc_toolchain_config.bzl @@ -0,0 +1,18 @@ +def _impl(ctx): + return cc_common.create_cc_toolchain_config_info( + ctx = ctx, + toolchain_identifier = "k8-toolchain", + host_system_name = "local", + target_system_name = "local", + target_cpu = "k8", + target_libc = "unknown", + compiler = "clang", + abi_version = "unknown", + abi_libc_version = "unknown", + ) + +cc_toolchain_config = rule( + implementation = _impl, + attrs = {}, + provides = [CcToolchainConfigInfo], +) \ No newline at end of file
