Skip to content

Commit

Permalink
fix: Make a test more platform-independent
Browse files Browse the repository at this point in the history
This will support ARM64 (Mac OS) and might be more future proof.
  • Loading branch information
Geod24 authored and thewilsonator committed Jan 2, 2025
1 parent 82aa9bf commit c42b730
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/issue1447-build-settings-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ set -e

. $(dirname "${BASH_SOURCE[0]}")/common.sh

if [[ `uname -m` == "x86_64" ]]; then
ARCH=x86_64
else
if [[ `uname -m` == "i386" ]]; then
ARCH=x86
elif [[ `uname -m` == "i686" ]]; then
ARCH=x86
elif [[ `uname -m` == "arm64" ]]; then
ARCH="aarch64"
else
ARCH=$(uname -m)
fi

rm -rf ${CURR_DIR}/issue1447-build-settings-vars/.dub
Expand Down
1 change: 1 addition & 0 deletions test/issue1447-build-settings-vars/view-aarch64/arch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aarch64

0 comments on commit c42b730

Please sign in to comment.