mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Attempt to account for BuildTools installer's lack of \
This commit is contained in:
@@ -684,8 +684,14 @@ gb_internal void find_visual_studio_paths_from_env_vars(Find_Result *result) {
|
|||||||
? str_lit("lib\\x64\\")
|
? str_lit("lib\\x64\\")
|
||||||
: str_lit("lib\\x86\\");
|
: str_lit("lib\\x86\\");
|
||||||
|
|
||||||
|
if (string_ends_with(vctid, str_lit("\\"))) {
|
||||||
result->vs_exe_path = mc_concat(vctid, exe);
|
result->vs_exe_path = mc_concat(vctid, exe);
|
||||||
result->vs_library_path = mc_concat(vctid, lib);
|
result->vs_library_path = mc_concat(vctid, lib);
|
||||||
|
} else {
|
||||||
|
result->vs_exe_path = mc_concat(vctid, str_lit("\\"), exe);
|
||||||
|
result->vs_library_path = mc_concat(vctid, str_lit("\\"), lib);
|
||||||
|
}
|
||||||
|
|
||||||
vs_found = true;
|
vs_found = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user