From 5b02425d87d35eb936ba42fb97288ffda5080d55 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:50:02 -0700 Subject: Update build scripts to check for avx instead of avx2 --- src/cli/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3