diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-22 18:41:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-22 18:41:51 +0100 |
| commit | 75fcd50b9aff5366a9f0e74e42535cc9e5dec8d7 (patch) | |
| tree | 8cfccdbc53e642882bc6a88701a833cc4370f6e5 /src/build_settings.cpp | |
| parent | c6a446fe87b818ef7d34131babe074080cdc4575 (diff) | |
| parent | f5719ae47cc9d0da7732580453d80a790399ffd1 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index b806adcd6..03a95a19b 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -840,13 +840,11 @@ gb_internal String odin_root_dir(void) { char const *found = gb_get_env("ODIN_ROOT", a); if (found) { String path = path_to_full_path(a, make_string_c(found)); - if (path[path.len-1] != '/' && path[path.len-1] != '\\') { #if defined(GB_SYSTEM_WINDOWS) - path = concatenate_strings(a, path, WIN32_SEPARATOR_STRING); + path = normalize_path(a, path, WIN32_SEPARATOR_STRING); #else - path = concatenate_strings(a, path, NIX_SEPARATOR_STRING); + path = normalize_path(a, path, NIX_SEPARATOR_STRING); #endif - } global_module_path = path; global_module_path_set = true; |