aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/environment.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 1fca6fd..0d30adb 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -225,13 +225,11 @@ def detect_cpu_family(compilers: CompilersDict) -> str:
trial = 'x86'
elif trial.startswith('arm'):
trial = 'arm'
- elif trial.startswith('ppc64'):
+ elif trial.startswith(('powerpc64', 'ppc64')):
trial = 'ppc64'
- elif trial == 'macppc':
+ elif trial.startswith(('powerpc', 'ppc')):
trial = 'ppc'
- elif trial == 'powerpc64':
- trial = 'ppc64'
- elif trial == 'powerpc':
+ elif trial == 'macppc':
trial = 'ppc'
elif trial in ('amd64', 'x64', 'i86pc'):
trial = 'x86_64'