Commit 2d2c11b
committed
feat: Extend
On Windows, the `gix_path::env::system_prefix()` function has two
strategies. The first is an optimization that doesn't always work,
where the `EXEPATH` environment variable is consulted. In Git Bash,
this variable is usually available, pointing somewhere into the
Git for Windows installation. Most commonly, but in practice not
universally, it points to the top-level directory of the Git for
Windows installation. `system_prefix()` on Windows looks for a
subdirectory of this directory that is named for one of the MSYS2
environment https://www.msys2.org/docs/environments prefixes, of
those Git for Windows has builds for. (Otherwise, it falls back to
traversing to such a location upward from what `git --exec-path`
reveals, which is often slower as `git` must sometimes be run.)
However, this `EXEPATH` optimization had only checked for the
`mingw64` and `mingw32` environment prefixes. This was ideal
before ARM64 builds of Git for Windows were released. But since
then, it is useful to allow the `clangarm64` environment prefix
as well, to allow the `EXEPATH` optimization to work on ARM64
builds of Git for Windows. This makes that change.EXEPATH optimization to support ARM64 Windows1 parent d5f4c9f commit 2d2c11b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
0 commit comments