Skip to content

Commit

Permalink
-baseline build for older intel macs
Browse files Browse the repository at this point in the history
  • Loading branch information
bephrem1 committed Oct 18, 2024
1 parent ea50654 commit 3c4e6d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ elif [ "$OS" = "Darwin" ]; then
;;
*)
echo "Installing for Intel Mac"
target='bun-darwin-x64'
if [ "$(sysctl -n machdep.cpu.features | grep -c AVX2)" -eq 0 ]; then
echo "(older Intel Mac detected, using baseline build)"
target='bun-darwin-x64-baseline'
else
target='bun-darwin-x64'
fi
;;
esac
fi
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ async function saveVersion(version: string) {
}

const COMPILE_TARGETS: string[] = [
"bun-linux-x64-baseline",
"bun-linux-x64",
"bun-linux-arm64",
"bun-darwin-x64-baseline",
"bun-darwin-x64",
"bun-darwin-arm64",
];
Expand Down

0 comments on commit 3c4e6d2

Please sign in to comment.