aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/systemlibs/jemalloc.BUILD
blob: 6a48d582ba4b525f55796e04e8e1fffe842a5507 (plain)
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
licenses(["notice"])  # BSD

filegroup(
    name = "COPYING",
    visibility = ["//visibility:public"],
)

cc_library(
    name = "jemalloc_headers",
    defines = [
        "jemalloc_posix_memalign=posix_memalign",
        "jemalloc_malloc=malloc",
        "jemalloc_realloc=realloc",
        "jemalloc_free=free",
    ],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "jemalloc_impl",
    linkopts = ["-ljemalloc"],
    defines = [
        "jemalloc_posix_memalign=posix_memalign",
        "jemalloc_malloc=malloc",
        "jemalloc_realloc=realloc",
        "jemalloc_free=free",
    ],
    visibility = ["//visibility:public"],
    deps = [":jemalloc_headers"],
)