Skip to content

Commit

Permalink
fix: arch_dir of win64_llvm_mingw
Browse files Browse the repository at this point in the history
- set arch_dir to be llvm_mingw_64

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Oct 6, 2024
1 parent e38fb3a commit 7cfd15a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aqt/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def dir_for_version(ver: Version) -> str:

@staticmethod
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"
elif arch.startswith("win32_mingw"):
return arch[6:] + "_32"
Expand Down
2 changes: 1 addition & 1 deletion aqt/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def make_qtenv2(self, base_dir, qt_version, arch_dir):
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):
"""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:
lines = f.readlines()
f.seek(0)
Expand Down

0 comments on commit 7cfd15a

Please sign in to comment.