Files
chromium-dev/ppc-fedora-0001-add-xnn-ppc64el-support.patch

30 lines
822 B
Diff
Raw Permalink Normal View History

2025-06-01 00:36:03 +02:00
--- a/third_party/xnnpack/generate_build_gn.py
+++ b/third_party/xnnpack/generate_build_gn.py
2025-07-01 12:01:57 +02:00
@@ -219,6 +219,9 @@
2025-06-01 00:36:03 +02:00
_Platform(gn_cpu='arm64',
bazel_cpu='aarch64',
2025-07-01 12:01:57 +02:00
bazel_platform='//:linux_aarch64'),
2025-06-01 00:36:03 +02:00
+ _Platform(gn_cpu='ppc64',
+ bazel_cpu='ppc64le',
2025-07-01 12:01:57 +02:00
+ bazel_platform='//:linux_ppc64le'),
_Platform(gn_cpu='riscv64',
bazel_cpu='riscv64',
bazel_platform='//:linux_riscv64')
2025-06-01 00:36:03 +02:00
--- 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")