forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-wrapper: cache less of is_running_on_arm64()
is_running_on_arm64() currently checks two distinct things: - is this process running on ARM64 hardware? - is there a clangarm64/bin directory in the specified parent directory? While the answer to the first question won't change during execution, the answer to the second question can change depending on function parameters. We currently cache the result of both in one variable. Due to this, once we checked in one directory, we're ignoring all subsequent directories. This causes /bin/sh.exe and /bin/bash.exe to fail with the message "Top-level not found" on ARM64. To fix this, split is_running_on_arm64() into two parts and cache only the result of the hardware part. Signed-off-by: Matthias Aßhauer <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters