Repository navigation
Expand file tree
/
Copy pathBUILD.bazel
More file actions
58 lines (51 loc) · 1.55 KB
/
Copy pathBUILD.bazel
File metadata and controls
58 lines (51 loc) · 1.55 KB
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
load("//internal:toolchain.bzl", "halide_alias")
package(default_visibility = ["//visibility:public"])
toolchain_type(name = "toolchain_type")
config_setting(
name = "msan_enabled",
values = {"features": "msan"},
)
# These name the halide_alias targets directly rather than wrapping them in a
# cc_library. A cc_library whose only content is a dep gets an empty module
# map, and clang's -fmodules-strict-decluse (Bazel's layering_check) doesn't
# look through it, so anything including Halide.h via one of these would fail
# with "does not depend on a module exporting 'Halide.h'". halide_alias
# re-exports the toolchain library's CcInfo, module map included.
halide_alias(
name = "halide",
target_compatible_with = select({
":msan_enabled": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
target_type = "halide",
)
halide_alias(
name = "gengen",
target_compatible_with = select({
":msan_enabled": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
target_type = "gengen",
)
halide_alias(
name = "runtime",
target_compatible_with = select({
":msan_enabled": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
target_type = "runtime",
)
filegroup(
name = "local_repository_files",
srcs = glob(
["**/*"],
exclude = [
"bazel-*/**",
".git/**",
"MODULE.bazel.lock",
],
) + [
"//internal:internal_files",
],
visibility = ["//visibility:public"],
)