Use uname -p to detect x86_64 on QNX.

pull/7618/head
Elad Lahav 4 years ago committed by Nirbheek Chauhan
parent d4213ee6cb
commit 7f0836d394
  1. 2
      mesonbuild/environment.py
  2. 2
      mesonbuild/mesonlib.py

@ -333,7 +333,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():
elif mesonlib.is_freebsd() or mesonlib.is_netbsd() or mesonlib.is_openbsd() or mesonlib.is_qnx():
trial = platform.processor().lower()
else:
trial = platform.machine().lower()

@ -515,6 +515,8 @@ def is_irix() -> bool:
def is_hurd() -> bool:
return platform.system().lower() == 'gnu'
def is_qnx() -> bool:
return platform.system().lower() == 'qnx'
def exe_exists(arglist: T.List[str]) -> bool:
try:

Loading…
Cancel
Save