Skip to content

Commit

Permalink
Use uname -m instead of arch
Browse files Browse the repository at this point in the history
The arch command is not available on all target platforms, uname -m
seems to have better support.

Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru committed Dec 3, 2021
1 parent e052760 commit 16c38d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/shlib/shlib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ mapfile_shim() {
# Dies if the host architecture is unknown.
arch_gcc() {
local arch
arch=$(arch)
arch=$(uname -m)
case "$arch" in
x86_64|aarch64) echo "$arch" ;;
arm64) echo aarch64 ;;
Expand Down

0 comments on commit 16c38d9

Please sign in to comment.