2022-07-07 20:11:50 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "cpu",
|
|
|
|
srcs = [
|
|
|
|
"asm_aix_ppc64.s",
|
|
|
|
"byteorder.go",
|
|
|
|
"cpu.go",
|
|
|
|
"cpu_aix.go",
|
|
|
|
"cpu_arm.go",
|
|
|
|
"cpu_arm64.go",
|
|
|
|
"cpu_arm64.s",
|
|
|
|
"cpu_gc_arm64.go",
|
|
|
|
"cpu_gc_s390x.go",
|
|
|
|
"cpu_gc_x86.go",
|
|
|
|
"cpu_linux.go",
|
|
|
|
"cpu_linux_arm.go",
|
|
|
|
"cpu_linux_arm64.go",
|
|
|
|
"cpu_linux_mips64x.go",
|
|
|
|
"cpu_linux_noinit.go",
|
|
|
|
"cpu_linux_ppc64x.go",
|
|
|
|
"cpu_linux_s390x.go",
|
|
|
|
"cpu_mips64x.go",
|
|
|
|
"cpu_mipsx.go",
|
|
|
|
"cpu_netbsd_arm64.go",
|
2022-11-04 02:21:49 +00:00
|
|
|
"cpu_openbsd_arm64.go",
|
|
|
|
"cpu_openbsd_arm64.s",
|
2022-07-07 20:11:50 +00:00
|
|
|
"cpu_other_arm.go",
|
|
|
|
"cpu_other_arm64.go",
|
|
|
|
"cpu_ppc64x.go",
|
|
|
|
"cpu_riscv64.go",
|
|
|
|
"cpu_s390x.go",
|
|
|
|
"cpu_s390x.s",
|
|
|
|
"cpu_wasm.go",
|
|
|
|
"cpu_x86.go",
|
|
|
|
"cpu_x86.s",
|
|
|
|
"cpu_zos.go",
|
|
|
|
"cpu_zos_s390x.go",
|
2024-02-24 00:34:55 +00:00
|
|
|
"endian_big.go",
|
|
|
|
"endian_little.go",
|
2022-07-07 20:11:50 +00:00
|
|
|
"hwcap_linux.go",
|
2024-02-24 00:34:55 +00:00
|
|
|
"parse.go",
|
|
|
|
"proc_cpuinfo_linux.go",
|
|
|
|
"runtime_auxv.go",
|
|
|
|
"runtime_auxv_go121.go",
|
2022-07-07 20:11:50 +00:00
|
|
|
"syscall_aix_ppc64_gc.go",
|
|
|
|
],
|
|
|
|
importmap = "peridot.resf.org/vendor/golang.org/x/sys/cpu",
|
|
|
|
importpath = "golang.org/x/sys/cpu",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|