Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing SSE on some builds
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 18, 2022
1 parent 3d91ac7 commit 63bf2d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap.yml
Expand Up @@ -4,7 +4,7 @@ on:
push:

env:
CACHE_VERSION: 20
CACHE_VERSION: 21
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1

Expand Down
8 changes: 7 additions & 1 deletion setup/env.sh
Expand Up @@ -92,7 +92,13 @@ if [ "${WASM}" -eq 1 ]; then
BUILD_FLAGS+=" -msse -msse2 -msse3 -msimd128"
elif [ -n "${LINUX_TARGET}" ] && [ "${LINUX_TARGET}" = "linux-armhf" ]; then
BUILD_FLAGS+=" -mfpu=neon-vfpv4 -mfloat-abi=hard"
elif [ -n "${LINUX_TARGET}" ] && [ "${LINUX_TARGET}" != "linux-aarch64" ] && [ "${LINUX_TARGET}" != "linux-riscv64" ]; then
elif [ -n "${LINUX_TARGET}" ] && [ "${LINUX_TARGET}" = "linux-aarch64" ]; then
# nothing?
BUILD_FLAGS+=""
elif [ -n "${LINUX_TARGET}" ] && [ "${LINUX_TARGET}" = "linux-riscv64" ]; then
# nothing here yet, SIMD is not a thing on RISC-V
BUILD_FLAGS+=""
else
BUILD_FLAGS+=" -mtune=generic -msse -msse2"
if [ "${MACOS_UNIVERSAL}" -eq 0 ]; then
BUILD_FLAGS+=" -mfpmath=sse"
Expand Down

0 comments on commit 63bf2d8

Please sign in to comment.