mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-06 15:10:03 +01:00
Replace '-Ofast', being deprecated in some compilers, with '-O3 -ffast-math'
This commit is contained in:
parent
5dede763ff
commit
16956b94b9
@ -13,7 +13,8 @@ else()
|
||||
if(EMSCRIPTEN)
|
||||
list(APPEND COMPILE_OPTIONS -O3)
|
||||
else()
|
||||
list(APPEND COMPILE_OPTIONS -Ofast)
|
||||
# Apply -ffast-math to allow compiler autovectorization generate effective SIMD code for arm compilation
|
||||
list(APPEND COMPILE_OPTIONS -O3 -ffast-math)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
@ -31,9 +31,8 @@ AC_DISABLE_STATIC dnl This makes libtool only build shared libs
|
||||
|
||||
AC_LANG(C++)
|
||||
|
||||
# Compiler flags. Apply -Ofast (implies -O3 -ffast-math) to allow gcc autovectorization
|
||||
# generate effective SIMD code.
|
||||
CXXFLAGS="${CXXFLAGS} -Ofast -Wall -Wextra -Wzero-as-null-pointer-constant -Wno-unknown-pragmas"
|
||||
# Compiler flags. Apply -ffast-math to allow compiler autovectorization generate effective SIMD code for arm compilation
|
||||
CXXFLAGS="${CXXFLAGS} -O3 -ffast-math -Wall -Wextra -Wzero-as-null-pointer-constant -Wno-unknown-pragmas"
|
||||
|
||||
# Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')"
|
||||
AR_FLAGS='cr'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user