30 lines
822 B
Diff
30 lines
822 B
Diff
--- a/third_party/xnnpack/generate_build_gn.py
|
|
+++ b/third_party/xnnpack/generate_build_gn.py
|
|
@@ -219,6 +219,9 @@
|
|
_Platform(gn_cpu='arm64',
|
|
bazel_cpu='aarch64',
|
|
bazel_platform='//:linux_aarch64'),
|
|
+ _Platform(gn_cpu='ppc64',
|
|
+ bazel_cpu='ppc64le',
|
|
+ bazel_platform='//:linux_ppc64le'),
|
|
_Platform(gn_cpu='riscv64',
|
|
bazel_cpu='riscv64',
|
|
bazel_platform='//:linux_riscv64')
|
|
--- 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")
|