-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
39 lines (37 loc) · 850 Bytes
/
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
#======================================================================
#
# BUILD -
#
# Created by liubang on 2023/04/17 15:51
# Last Modified: 2023/04/17 15:51
#
#======================================================================
# vim: ft=bzl
cc_library(
name = "common",
hdrs = glob(["include/*.h"]),
copts = ["-std=c++17"],
includes = ["include"],
visibility = ["//visibility:private"],
)
[
cc_test(
name = "%s" % f[4:f.rfind(".")],
srcs = [
"%s" % f,
],
copts = [
"-std=c++17",
"-fno-omit-frame-pointer",
"-fsanitize=address",
],
linkopts = [
"-fsanitize=address",
],
deps = [
":common",
"@googletest//:gtest_main",
],
)
for f in glob(["src/*.cc"])
]