Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# Copied from TensorFlow's `tensorflow/tree/master/third_party/cpuinfo/BUILD
# Licenced under Apache-2.0 License
load("@rules_license//rules:license.bzl", "license")

# cpuinfo, a library to detect information about the host CPU
package(default_visibility = ["//visibility:public"])
package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:public"]
)

licenses(["notice"])

exports_files(["LICENSE"])
exports_files([
"LICENSE",
])

license(
name = "license",
license_kinds = ["@rules_license//licenses/spdx:BSD-2-Clause"],
license_text = "LICENSE",
)

C99OPTS = [
"-std=gnu99", # gnu99, not c99, because dprintf is used
Expand Down
2 changes: 2 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module(name = "cpuinfo")

bazel_dep(name = "rules_license", version = "1.0.0")