Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit b760eab

Browse files
authored
fixtoolchain (#3563)
1 parent 1c62485 commit b760eab

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

tools/travis/toolchain/BUILD

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@rules_cc//cc:defs.bzl", "cc_toolchain")
2+
load(":cc_toolchain_config.bzl", "cc_toolchain_config")
23

34
licenses(["restricted"])
45

@@ -27,32 +28,30 @@ filegroup(
2728
],
2829
)
2930

31+
cc_toolchain_config(name = "k8_toolchain_config")
32+
3033
cc_toolchain(
3134
name = "cc-compiler-local",
3235
all_files = ":empty",
3336
compiler_files = ":empty",
34-
cpu = "local",
3537
dwp_files = ":empty",
36-
dynamic_runtime_libs = [":empty"],
3738
linker_files = ":empty",
3839
objcopy_files = ":empty",
39-
static_runtime_libs = [":empty"],
4040
strip_files = ":empty",
4141
supports_param_files = 0,
42+
toolchain_config = ":k8_toolchain_config",
4243
)
4344

4445
cc_toolchain(
4546
name = "cc-compiler-k8",
4647
all_files = ":empty",
4748
compiler_files = ":empty",
48-
cpu = "local",
4949
dwp_files = ":empty",
50-
dynamic_runtime_libs = [":empty"],
5150
linker_files = ":empty",
5251
objcopy_files = ":empty",
53-
static_runtime_libs = [":empty"],
5452
strip_files = ":empty",
5553
supports_param_files = 0,
54+
toolchain_config = ":k8_toolchain_config",
5655
)
5756

5857
filegroup(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
def _impl(ctx):
2+
return cc_common.create_cc_toolchain_config_info(
3+
ctx = ctx,
4+
toolchain_identifier = "k8-toolchain",
5+
host_system_name = "local",
6+
target_system_name = "local",
7+
target_cpu = "k8",
8+
target_libc = "unknown",
9+
compiler = "clang",
10+
abi_version = "unknown",
11+
abi_libc_version = "unknown",
12+
)
13+
14+
cc_toolchain_config = rule(
15+
implementation = _impl,
16+
attrs = {},
17+
provides = [CcToolchainConfigInfo],
18+
)

0 commit comments

Comments
 (0)