aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-10-02 18:50:02 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-10-02 18:50:02 -0700
commit5b02425d87d35eb936ba42fb97288ffda5080d55 (patch)
tree1a4f43bb8b025e970bfad706f61ad75d777a94f7 /src
parentb444c0b98db6dee5a10d680f30ba1c0fbff4f285 (diff)
downloadbun-5b02425d87d35eb936ba42fb97288ffda5080d55.tar.gz
bun-5b02425d87d35eb936ba42fb97288ffda5080d55.tar.zst
bun-5b02425d87d35eb936ba42fb97288ffda5080d55.zip
Update build scripts to check for avx instead of avx2jarred/update-install-stuff
Diffstat (limited to 'src')
-rw-r--r--src/cli/install.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/install.sh b/src/cli/install.sh
index 4afd50aef..0eaaae961 100644
--- a/src/cli/install.sh
+++ b/src/cli/install.sh
@@ -85,15 +85,15 @@ GITHUB=${GITHUB-"https://github.com"}
github_repo="$GITHUB/oven-sh/bun"
if [[ $target = darwin-x64 ]]; then
- # If AVX2 isn't supported, use the -baseline build
- if [[ $(sysctl -a | grep machdep.cpu | grep AVX2) == '' ]]; then
+ # If AVX isn't supported, use the -baseline build
+ if [[ $(sysctl -a | grep machdep.cpu | grep AVX) == '' ]]; then
target=darwin-x64-baseline
fi
fi
if [[ $target = linux-x64 ]]; then
- # If AVX2 isn't supported, use the -baseline build
- if [[ $(cat /proc/cpuinfo | grep avx2) = '' ]]; then
+ # If AVX isn't supported, use the -baseline build
+ if [[ $(cat /proc/cpuinfo | grep avx) = '' ]]; then
target=linux-x64-baseline
fi
fi