mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
Fix baseline detection for macOS x64
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user