diff options
| author | 2022-08-05 16:30:36 -0700 | |
|---|---|---|
| committer | 2022-08-05 16:30:51 -0700 | |
| commit | 7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61 (patch) | |
| tree | a8f018d81259fbfa8296ca13932a62af71de0aa6 | |
| parent | 35a6946b632436aa86f8494c1f08322b07abba67 (diff) | |
| download | bun-7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61.tar.gz bun-7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61.tar.zst bun-7cbb9add48c7f2b88698e54bd172bcaa0fcb3d61.zip | |
Fix baseline detection for macOS x64
| -rw-r--r-- | src/cli/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/install.sh b/src/cli/install.sh index 9218c51ad..c8a6be426 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 |
