From 7c905323740054f6c26547030572f3045f3f25dc Mon Sep 17 00:00:00 2001
From: Mark Turner <mark.turner@riverlane.com>
Date: Thu, 29 Feb 2024 17:30:11 +0000
Subject: [PATCH] Enable pip installation from source on IBM PowerPC (#705)

This patch enables pip installation from source on IBM PowerPC in a way
that is consistent with what is in place for Arm architectures.
---
 src/stim/py/march.pybind.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/stim/py/march.pybind.cc b/src/stim/py/march.pybind.cc
index 762b86e40..c012618b5 100644
--- a/src/stim/py/march.pybind.cc
+++ b/src/stim/py/march.pybind.cc
@@ -6,8 +6,8 @@
 //  Windows
 #include <intrin.h>
 #define cpuid(info, x) __cpuidex(info, x, 0)
-#elif (defined(__arm64__) && defined(__APPLE__)) || defined(__aarch64__)
-// macOS ARM64 (dummied out)
+#elif (defined(__arm64__) && defined(__APPLE__)) || defined(__aarch64__) || defined(_ARCH_PPC)
+// macOS ARM64 and IBM PowerPC (dummied out)
 void cpuid(int info[4], int infoType) {
     info[0] = 0;
     info[1] = 0;