Browse Source

Fix libsndfile build on macOS

pull/25/head
falkTX 3 years ago
parent
commit
b8f55bd1b4
2 changed files with 10 additions and 7 deletions
  1. +1
    -1
      .github/workflows/bootstrap.yml
  2. +9
    -6
      bootstrap-common.sh

+ 1
- 1
.github/workflows/bootstrap.yml View File

@@ -8,7 +8,7 @@ on:
branches:
- '*'
env:
CACHE_VERSION: 1
CACHE_VERSION: 2
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1



+ 9
- 6
bootstrap-common.sh View File

@@ -183,14 +183,17 @@ fi

LIBSNDFILE_EXTRAFLAGS="--disable-alsa --disable-full-suite --disable-sqlite"

# force intrinsic optimizations on macos-universal target
if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
LIBSNDFILE_EXTRAFLAGS+=" ac_cv_header_immintrin_h=yes"
fi

# otherwise tests fail
export EXTRA_CFLAGS="-fno-associative-math -frounding-math"
export EXTRA_CFLAGS="-fno-associative-math -fno-reciprocal-math -frounding-math"

if [ "${MACOS}" -eq 1 ]; then
export EXTRA_CFLAGS+=" -fsignaling-math"
else
export EXTRA_CFLAGS+=" -fsignaling-nans"
fi
# if [ "${MACOS}" -eq 0 ]; then
# export EXTRA_CFLAGS+=" -fsignaling-nans"
# fi

download libsndfile "${LIBSNDFILE_VERSION}" "${LIBSNDFILE_URL}" "tar.bz2"



Loading…
Cancel
Save