systemlibs: unbundle hwloc

Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
Jason Zaman 2019-04-14 22:18:37 +08:00
parent 64a71153f5
commit 00201d244b
3 changed files with 24 additions and 0 deletions

22
third_party/hwloc/BUILD.system vendored Normal file
View File

@ -0,0 +1,22 @@
# hwloc: Portable Hardware Locality Library
licenses(["notice"])
config_setting(
name = "with_numa_support",
define_values = {"with_numa_support": "true"},
)
filegroup(
name = "COPYING",
visibility = ["//visibility:public"],
)
cc_library(
name = "hwloc",
linkopts = select({
":with_numa_support": ["-lhwloc"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
)

View File

@ -12,4 +12,5 @@ def repo():
sha256 = "64def246aaa5b3a6e411ce10932a22e2146c3031b735c8f94739534f06ad071c",
strip_prefix = "hwloc-2.0.3",
build_file = "//third_party/hwloc:BUILD.bazel",
system_build_file = "//third_party/hwloc:BUILD.system",
)

View File

@ -25,6 +25,7 @@ VALID_LIBS = [
"gast_archive",
"gif_archive",
"grpc",
"hwloc",
"icu",
"jpeg",
"jsoncpp_git",