-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathBUILD
69 lines (56 loc) · 1.31 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
66
67
68
69
# HEIR, an MLIR project for homomorphic encryption
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@rules_license//rules:license.bzl", "license")
package(
default_applicable_licenses = ["@heir//:license"],
default_visibility = ["//visibility:public"],
)
license(name = "license")
licenses(["notice"])
exports_files([
"LICENSE",
])
package_group(
name = "internal",
packages = [],
)
# Disables deps for CI tools and tests.
# use by passing `--//:enable_openmp=0` or `--//:enable_yosys=0`
# to `bazel build` or `bazel test`
# OpenMP
string_flag(
name = "enable_openmp",
# TODO(#1361): re-enable when it's compatible with the Python frontend
build_setting_default = "0",
)
config_setting(
name = "config_enable_openmp",
flag_values = {
":enable_openmp": "1",
},
visibility = ["//visibility:public"],
)
config_setting(
name = "config_disable_openmp",
flag_values = {
":enable_openmp": "0",
},
visibility = ["//visibility:public"],
)
# Yosys
string_flag(
name = "enable_yosys",
build_setting_default = "1",
)
config_setting(
name = "config_enable_yosys",
flag_values = {
":enable_yosys": "1",
},
)
config_setting(
name = "config_disable_yosys",
flag_values = {
":enable_yosys": "0",
},
)