fix: arch_dir of win64_llvm_mingw

- set arch_dir to be llvm_mingw_64

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2024-10-06 08:42:15 +09:00
parent e38fb3a509
commit 7cfd15a585
2 changed files with 2 additions and 2 deletions

View File

@@ -387,7 +387,7 @@ class QtRepoProperty:
@staticmethod @staticmethod
def get_arch_dir_name(host: str, arch: str, version: Version) -> str: def get_arch_dir_name(host: str, arch: str, version: Version) -> str:
if arch.startswith("win64_mingw"): if arch.startswith("win64") and arch.endswith("mingw"):
return arch[6:] + "_64" return arch[6:] + "_64"
elif arch.startswith("win32_mingw"): elif arch.startswith("win32_mingw"):
return arch[6:] + "_32" return arch[6:] + "_32"

View File

@@ -228,7 +228,7 @@ class Updater:
f.write("echo Remember to call vcvarsall.bat to complete environment setup!\n") f.write("echo Remember to call vcvarsall.bat to complete environment setup!\n")
def set_license(self, base_dir: str, qt_version: str, arch_dir: str): def set_license(self, base_dir: str, qt_version: str, arch_dir: str):
"""Update qtconfig.pri as OpenSource""" """Update qconfig.pri as OpenSource"""
with open(os.path.join(base_dir, qt_version, arch_dir, "mkspecs", "qconfig.pri"), "r+") as f: with open(os.path.join(base_dir, qt_version, arch_dir, "mkspecs", "qconfig.pri"), "r+") as f:
lines = f.readlines() lines = f.readlines()
f.seek(0) f.seek(0)