2020-01-27 10:04:07 -08:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test")
|
2018-04-27 10:37:02 -07:00
|
|
|
|
2023-03-02 10:46:34 -08:00
|
|
|
package(
|
|
|
|
|
default_applicable_licenses = ["//:license"],
|
|
|
|
|
licenses = ["notice"],
|
|
|
|
|
)
|
2018-10-23 00:19:11 -07:00
|
|
|
|
2018-04-27 10:37:02 -07:00
|
|
|
go_library(
|
|
|
|
|
name = "hostcpu",
|
|
|
|
|
srcs = [
|
|
|
|
|
"getcpu_amd64.s",
|
2019-09-17 08:27:01 +00:00
|
|
|
"getcpu_arm64.s",
|
2018-04-27 10:37:02 -07:00
|
|
|
"hostcpu.go",
|
|
|
|
|
],
|
|
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
|
name = "hostcpu_test",
|
|
|
|
|
size = "small",
|
|
|
|
|
srcs = ["hostcpu_test.go"],
|
2020-01-27 10:04:07 -08:00
|
|
|
library = ":hostcpu",
|
2018-04-27 10:37:02 -07:00
|
|
|
)
|