Skip to content

Commit

Permalink
patch with @fmartingr to check that in linux only
Browse files Browse the repository at this point in the history
  • Loading branch information
Monirzadeh committed May 26, 2024
1 parent f7bf07f commit e00f41b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/styles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ OUTPUT_ARCHIVECSS=internal/view/assets/css/archive.css

# Detect support of avx2
BUN="bun"
if ! grep -q avx2 /proc/cpuinfo; then
BUN="sde -chip-check-disable -- bun"
echo "Your CPU does not support avx2 so we use sde, for more information please look at https://github.com/oven-sh/bun/issues/762#issuecomment-1186505847"
fi
case `uname -o` in
GNU/Linux)
# Detect support of avx2 in linux hosts
if ! grep -q avx2 /proc/cpuinfo; then
BUN="sde -chip-check-disable -- bun"
echo "Your CPU does not support avx2 so we use sde, for more information please look at https://github.com/oven-sh/bun/issues/762#issuecomment-1186505847"
fi
;;
esac

# Use bun is installled
if [ -x "$(command -v bun)" ]; then
Expand Down

0 comments on commit e00f41b

Please sign in to comment.