mirror of
https://github.com/andersrh/copr-andersrh.git
synced 2026-05-17 13:58:01 +00:00
31 lines
837 B
Diff
31 lines
837 B
Diff
--- a/third_party/xnnpack/generate_build_gn.py
|
|
+++ b/third_party/xnnpack/generate_build_gn.py
|
|
@@ -236,7 +236,10 @@
|
|
_Platform(gn_cpu='x64', bazel_cpu='k8', bazel_platform='//:linux_x64'),
|
|
_Platform(gn_cpu='arm64',
|
|
bazel_cpu='aarch64',
|
|
- bazel_platform='//:linux_aarch64')
|
|
+ bazel_platform='//:linux_aarch64'),
|
|
+ _Platform(gn_cpu='ppc64',
|
|
+ bazel_cpu='ppc64le',
|
|
+ bazel_platform='//:linux_ppc64le')
|
|
]
|
|
|
|
|
|
--- a/third_party/xnnpack/bazelroot/BUILD
|
|
+++ b/third_party/xnnpack/bazelroot/BUILD
|
|
@@ -21,6 +21,14 @@
|
|
],
|
|
)
|
|
|
|
+platform(
|
|
+ name = "linux_ppc64le",
|
|
+ constraint_values = [
|
|
+ "@platforms//os:linux",
|
|
+ "@platforms//cpu:ppc64le",
|
|
+ ],
|
|
+)
|
|
+
|
|
# A dummy clang toolchain for building them for any arch.
|
|
|
|
filegroup(name = "empty")
|