systemlibs: unbundle hwloc
Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
parent
64a71153f5
commit
00201d244b
22
third_party/hwloc/BUILD.system
vendored
Normal file
22
third_party/hwloc/BUILD.system
vendored
Normal 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"],
|
||||
)
|
1
third_party/hwloc/workspace.bzl
vendored
1
third_party/hwloc/workspace.bzl
vendored
@ -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",
|
||||
)
|
||||
|
1
third_party/systemlibs/syslibs_configure.bzl
vendored
1
third_party/systemlibs/syslibs_configure.bzl
vendored
@ -25,6 +25,7 @@ VALID_LIBS = [
|
||||
"gast_archive",
|
||||
"gif_archive",
|
||||
"grpc",
|
||||
"hwloc",
|
||||
"icu",
|
||||
"jpeg",
|
||||
"jsoncpp_git",
|
||||
|
Loading…
Reference in New Issue
Block a user