-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
65 lines (60 loc) · 2.27 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Toolchain target definition
load("//:toolchain_definition.bzl", "cc_toolchain_config_info_generator")
cc_toolchain_config_info_generator(name = "simple_x86_64_linux_config")
filegroup(name = "empty")
cc_toolchain(
name = "simple_x86_64_linux",
all_files = "//:empty",
# ar_files (optional)
# as_files (optional)
# compiler (deprecated, optional)
compiler_files = "//:empty",
# compiler_files_without_includes (optional)
# coverage_files (optional)
# cpu (deprecated, optional)
dwp_files = "//:empty",
# dynamic_runtime_lib (optional)
# libc_top (optional)
linker_files = "//:empty",
# module_map (optional)
objcopy_files = "//:empty",
# static_runtime_lib (optional)
strip_files = "//:empty",
supports_header_parsing = False,
supports_param_files = False,
toolchain_config = "//:simple_x86_64_linux_config",
# toolchain_identifier (optional)
)
# Information which describes the cc_toolchain target to the general toolchain
# apparatus of Bazel.
toolchain(
name = "simple_x86_64_linux_toolchain",
exec_compatible_with = [
"//nonstandard_toolchain:simple_cpp_toolchain",
"@platforms//os:linux",
"@platforms//cpu:x86_64"
],
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64"
],
target_settings = [],
toolchain = "//:simple_x86_64_linux",
# The toolchain_type attribute is an identifier that is used by a rule,
# such as cc_binary, to indicate that the rule uses the identified type of
# toolchain. Rules can use more than one toolchain_type. C++ rules use a
# single toolchain_type. The name of a toolchain_type is, by convention,
# always "toolchain_type".
toolchain_type = "@rules_cc//cc:toolchain_type",
visibility = ["//visibility:public"]
)
# A platform target definition for targets which use the non-standard
# toolchain.
platform(
name = "simple_cpp_x86_64_linux_platform",
constraint_values = [
"//nonstandard_toolchain:simple_cpp_toolchain",
"@platforms//cpu:x86_64",
"@platforms//os:linux"
]
)