|
|
|
@ -337,7 +337,7 @@ def detect_cpu_family(compilers: CompilersDict) -> str: |
|
|
|
|
""" |
|
|
|
|
if mesonlib.is_windows(): |
|
|
|
|
trial = detect_windows_arch(compilers) |
|
|
|
|
elif mesonlib.is_freebsd() or mesonlib.is_netbsd() or mesonlib.is_openbsd() or mesonlib.is_qnx(): |
|
|
|
|
elif mesonlib.is_freebsd() or mesonlib.is_netbsd() or mesonlib.is_openbsd() or mesonlib.is_qnx() or mesonlib.is_aix(): |
|
|
|
|
trial = platform.processor().lower() |
|
|
|
|
else: |
|
|
|
|
trial = platform.machine().lower() |
|
|
|
@ -377,6 +377,10 @@ def detect_cpu_family(compilers: CompilersDict) -> str: |
|
|
|
|
# ATM there is no 64 bit userland for PA-RISC. Thus always |
|
|
|
|
# report it as 32 bit for simplicity. |
|
|
|
|
trial = 'parisc' |
|
|
|
|
elif trial == 'ppc': |
|
|
|
|
# AIX always returns powerpc, check here for 64-bit |
|
|
|
|
if any_compiler_has_define(compilers, '__64BIT__'): |
|
|
|
|
trial = 'ppc64' |
|
|
|
|
|
|
|
|
|
if trial not in known_cpu_families: |
|
|
|
|
mlog.warning('Unknown CPU family {!r}, please report this at ' |
|
|
|
@ -388,7 +392,7 @@ def detect_cpu_family(compilers: CompilersDict) -> str: |
|
|
|
|
def detect_cpu(compilers: CompilersDict): |
|
|
|
|
if mesonlib.is_windows(): |
|
|
|
|
trial = detect_windows_arch(compilers) |
|
|
|
|
elif mesonlib.is_freebsd() or mesonlib.is_netbsd() or mesonlib.is_openbsd(): |
|
|
|
|
elif mesonlib.is_freebsd() or mesonlib.is_netbsd() or mesonlib.is_openbsd() or mesonlib.is_aix(): |
|
|
|
|
trial = platform.processor().lower() |
|
|
|
|
else: |
|
|
|
|
trial = platform.machine().lower() |
|
|
|
|