File: faustoptflags

package info (click to toggle)
faust 2.14.4~repack2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 276,136 kB
  • sloc: cpp: 231,578; ansic: 15,403; sh: 10,871; java: 6,917; objc: 4,085; makefile: 3,002; cs: 1,077; ruby: 951; python: 885; xml: 550; yacc: 516; lex: 233; lisp: 201
file content (30 lines) | stat: -rwxr-xr-x 1,199 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

#####################################################################
#                                                                   #
#               Defines the best optimisation flags to use          #
#				on the various platforms. This file is called		#
#				by the faust2xxx scripts. It sets two variables		#
#				$MYGCCFLAGS and $MYICCFLAGS							#
#               (c) Grame, 2013                                		#
#                                                                   #
#####################################################################

#-------------------------------------------------------------------
# Default compilation flags for gcc and icc :
#
if [[ $(uname -m) == armv6l ]]; then		# for Raspberry PI
	MYGCCFLAGS="-O3 -march=armv6zk -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -ffast-math -ftree-vectorize"
elif [[ $(uname -s) == Darwin ]]; then		# for MacOSX (intel)
	MYGCCFLAGS="-Ofast -march=native"
else 										# for Linux (intel)
    MYGCCFLAGS="-std=c++11 -Ofast -march=native"
fi

# for Linux (intel) with icc
MYICCFLAGS="-O3 -xHost -ftz -fno-alias -fp-model fast=2"

# Default compiler
CXX=c++
CC=g++
LIPO=lipo