Fix build on Linux

This commit is contained in:
Ilya Fedin 2024-06-21 16:46:34 +04:00 committed by John Preston
parent 2db81211c8
commit 382b175db2
2 changed files with 3 additions and 4 deletions

View file

@ -10,8 +10,7 @@ def resolve(arch):
elif os.environ.get('QT') is None: elif os.environ.get('QT') is None:
print('Choosing Qt 5.') print('Choosing Qt 5.')
os.environ['QT'] = '5.15.13' os.environ['QT'] = '5.15.13'
else: elif os.environ.get('QT') is None:
print('Choosing Qt ' + os.environ.get('QT'))
else:
return False return False
print('Choosing Qt ' + os.environ.get('QT'))
return True return True

View file

@ -46,7 +46,7 @@ elif officialTarget in ['win64', 'uwp64']:
elif officialTarget in ['winarm', 'uwparm']: elif officialTarget in ['winarm', 'uwparm']:
arch = 'arm' arch = 'arm'
if not qt_version.resolve(arch): if not qt_version.resolve(arch):
error('Usupported platform.') error('Unsupported platform.')
if 'qt6' in arguments: if 'qt6' in arguments:
arguments.remove('qt6') arguments.remove('qt6')