You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Windows: Fix arch detection via VCTOOLSINSTALLDIR
This commit is contained in:
@@ -142,7 +142,8 @@ def detect_build_env_arch():
|
|||||||
if os.getenv("VCTOOLSINSTALLDIR"):
|
if os.getenv("VCTOOLSINSTALLDIR"):
|
||||||
host_path_index = os.getenv("PATH").upper().find(os.getenv("VCTOOLSINSTALLDIR").upper() + "BIN\\HOST")
|
host_path_index = os.getenv("PATH").upper().find(os.getenv("VCTOOLSINSTALLDIR").upper() + "BIN\\HOST")
|
||||||
if host_path_index > -1:
|
if host_path_index > -1:
|
||||||
first_path_arch = os.getenv("PATH").split(";")[0].rsplit("\\", 1)[-1].lower()
|
first_path_arch = os.getenv("PATH")[host_path_index:].split(";")[0].rsplit("\\", 1)[-1].lower()
|
||||||
|
if first_path_arch in msvc_target_aliases.keys():
|
||||||
return msvc_target_aliases[first_path_arch]
|
return msvc_target_aliases[first_path_arch]
|
||||||
|
|
||||||
msys_target_aliases = {
|
msys_target_aliases = {
|
||||||
|
|||||||
Reference in New Issue
Block a user