Skip to content

Commit

Permalink
android: enable release builds with -fno-unsafe-math-optimizations
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
  • Loading branch information
omcfadde committed Aug 15, 2012
1 parent a38cafb commit a1924b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion neo/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ elif ( BUILD == 'release' ):
# -fschedule-insns2: implicit at -O2
# no-unsafe-math-optimizations: that should be on by default really. hit some wonko bugs in physics code because of that
if ( g_os == 'Android' ):
OPTCPPFLAGS = [ '-marm', '-march=armv7-a', '-mfloat-abi=softfp', '-mfpu=neon', '-ffast-math', '-O3', '-fomit-frame-pointer' ]
OPTCPPFLAGS = [ '-O3', '-marm', '-march=armv7-a', '-mfloat-abi=softfp', '-mfpu=neon', '-ffast-math', '-fno-unsafe-math-optimizations', '-fomit-frame-pointer' ]
else:
OPTCPPFLAGS = [ '-O3', '-march=pentium3', '-ffast-math', '-fno-unsafe-math-optimizations', '-fomit-frame-pointer' ]
if ( ID_MCHECK == '0' ):
Expand Down
1 change: 1 addition & 0 deletions neo/android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export CC=$ARCH-gcc

scons \
ARCH='arm' \
BUILD='release' \
\
CC=$CC \
CXX=$CXX \
Expand Down

0 comments on commit a1924b3

Please sign in to comment.