This repository was archived by the owner on Mar 3, 2023. It is now read-only.
File tree 2 files changed +23
-6
lines changed
2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
load ("@rules_cc//cc:defs.bzl" , "cc_toolchain" )
2
+ load (":cc_toolchain_config.bzl" , "cc_toolchain_config" )
2
3
3
4
licenses (["restricted" ])
4
5
@@ -27,32 +28,30 @@ filegroup(
27
28
],
28
29
)
29
30
31
+ cc_toolchain_config (name = "k8_toolchain_config" )
32
+
30
33
cc_toolchain (
31
34
name = "cc-compiler-local" ,
32
35
all_files = ":empty" ,
33
36
compiler_files = ":empty" ,
34
- cpu = "local" ,
35
37
dwp_files = ":empty" ,
36
- dynamic_runtime_libs = [":empty" ],
37
38
linker_files = ":empty" ,
38
39
objcopy_files = ":empty" ,
39
- static_runtime_libs = [":empty" ],
40
40
strip_files = ":empty" ,
41
41
supports_param_files = 0 ,
42
+ toolchain_config = ":k8_toolchain_config" ,
42
43
)
43
44
44
45
cc_toolchain (
45
46
name = "cc-compiler-k8" ,
46
47
all_files = ":empty" ,
47
48
compiler_files = ":empty" ,
48
- cpu = "local" ,
49
49
dwp_files = ":empty" ,
50
- dynamic_runtime_libs = [":empty" ],
51
50
linker_files = ":empty" ,
52
51
objcopy_files = ":empty" ,
53
- static_runtime_libs = [":empty" ],
54
52
strip_files = ":empty" ,
55
53
supports_param_files = 0 ,
54
+ toolchain_config = ":k8_toolchain_config" ,
56
55
)
57
56
58
57
filegroup (
Original file line number Diff line number Diff line change
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
+ )
You can’t perform that action at this time.
0 commit comments