-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
39 lines (36 loc) · 1.12 KB
/
BUILD.bazel
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
load("//lib:lib.bzl", "package_lib")
load("//toolchains:utils.bzl", "no_error")
load("//toolchains/make:configure.bzl", "configure_make_lib")
load("package.bzl", "NAME")
package(default_visibility = ["//:__subpackages__"])
package_lib()
configure_make_lib(
name = NAME,
configure_options = [
"--disable-doc",
"--disable-shared",
"--disable-lzma-links",
"--disable-lzmadec",
"--disable-lzmainfo",
"--disable-scripts",
"--disable-xz",
"--disable-xzdec",
],
copts = select({
"//config:wasm": [
"-sSHARED_MEMORY", # for -pthread support
# Need to demote some additional errors to warnings.
# This is because we re-compile a copy of getopt_long here, since
# the one from libc is sot compiled with threading support.
no_error([
# keep sorted
"deprecated-non-prototype",
"sign-conversion",
"undef",
"unused-parameter",
"unused-value",
]),
],
"//conditions:default": [],
}),
)