Skip to content

Commit

Permalink
faustoptflags now uses c++14.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Jan 17, 2025
1 parent fa44940 commit d02dee1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/faust2appls/faustoptflags
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
# Default compilation flags for gcc and icc :
#
if [ "$(uname -m)" = armv6l ]; then # for Raspberry PI
MYGCCFLAGS="-std=c++11 -O3 -march=armv6zk -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -ffast-math -ftree-vectorize"
MYGCCFLAGS="-std=c++14 -O3 -march=armv6zk -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -ffast-math -ftree-vectorize"
elif [ "$(uname -s)" = Darwin ]; then # for macOS
if [[ $(sysctl -n machdep.cpu.brand_string) =~ "Apple" ]]; then
# Silicon MX
MYGCCFLAGS="-std=c++11 -Ofast"
MYGCCFLAGS="-std=c++14 -Ofast"
else
# Intel
MYGCCFLAGS="-std=c++11 -Ofast -march=native"
MYGCCFLAGS="-std=c++14 -Ofast -march=native"
fi
MYGCCFLAGSGENERIC="-std=c++11 -Ofast"
MYGCCFLAGSGENERIC="-std=c++14 -Ofast"
else # for Linux (Intel)
MYGCCFLAGS="-std=c++11 -Ofast -march=native"
MYGCCFLAGSGENERIC="-std=c++11 -Ofast"
MYGCCFLAGS="-std=c++14 -Ofast -march=native"
MYGCCFLAGSGENERIC="-std=c++14 -Ofast"
fi

# For Linux (intel) with icc
MYICCFLAGS="-std=c++11 -O3 -xHost -ftz -fno-alias -fp-model fast=2"
MYICCFLAGS="-std=c++14 -O3 -xHost -ftz -fno-alias -fp-model fast=2"

# Default compilers

Expand Down

0 comments on commit d02dee1

Please sign in to comment.