-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUILD
More file actions
36 lines (31 loc) · 992 Bytes
/
BUILD
File metadata and controls
36 lines (31 loc) · 992 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
33
34
35
36
genrule(
name = "build-info",
srcs = [],
outs = ["build-info.h"],
cmd = select({
"//:gperftools_tcmalloc": "cat bazel-out/stable-status.txt | while read line; do echo \"#define $$line\" >> $@; done; echo \"#define MALLOC_IMPLEMENTATION \\\"tc-malloc\\\"\">>$@",
"//conditions:default": "cat bazel-out/stable-status.txt | while read line; do echo \"#define $$line\" >> $@; done; echo \"#define MALLOC_IMPLEMENTATION \\\"default\\\"\">>$@",
}),
stamp = True,
visibility = ["//visibility:public"],
)
config_setting(
name = "gperftools_tcmalloc",
values = {"define": "tcmalloc=gperftools"},
)
config_setting(
name = "spack",
values = {"define": "spack=enabled"},
)
config_setting(
name = "logging",
values = {"define": "logging=enabled"},
)
config_setting(
name = "kagen",
values = {"define": "kagen=enabled"},
)
config_setting(
name = "detailed_logging",
values = {"define": "detailed_logging=enabled"},
)