From 7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 5 Aug 2022 16:30:36 -0700 Subject: [PATCH] Fix baseline detection for macOS x64 --- src/cli/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/install.sh b/src/cli/install.sh index 9218c51ad5..c8a6be426a 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -83,7 +83,7 @@ github_repo="https://github.com/oven-sh/bun" if [[ $target = darwin-x64 ]]; then # If AVX2 isn't supported, use the -baseline build - if [[ $(sysctl -n machdep.cpu.features) != *avx2* ]]; then + if [[ $(sysctl -a | grep machdep.cpu | grep AVX2) == '' ]]; then target=darwin-x64-baseline fi fi