-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
32 lines (28 loc) · 989 Bytes
/
BUILD.bazel
File metadata and controls
32 lines (28 loc) · 989 Bytes
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
load("@rules_cc//cc:defs.bzl", "cc_toolchain")
load(":dummy_cc_toolchain.bzl", "dummy_cc_toolchain_config")
# This defines a dummy C++ toolchain for Windows.
# Without this, the build fails with "Unable to find a CC toolchain using toolchain resolution".
dummy_cc_toolchain_config(name = "dummy_cc_toolchain_config")
filegroup(name = "empty")
cc_toolchain(
name = "dummy_cc_toolchain",
all_files = ":empty",
compiler_files = ":empty",
dwp_files = ":empty",
linker_files = ":empty",
objcopy_files = ":empty",
strip_files = ":empty",
supports_param_files = 0,
toolchain_config = ":dummy_cc_toolchain_config",
toolchain_identifier = "dummy_cc_toolchain",
)
toolchain(
name = "dummy_cc_windows_no_exec_toolchain",
exec_compatible_with = [],
target_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
toolchain = ":dummy_cc_toolchain",
toolchain_type = "@rules_cc//cc:toolchain_type",
)