From: divverent Date: Sat, 1 Nov 2008 17:07:24 +0000 (+0000) Subject: add a note to the makefile that -ffast-math and -funsafe-math-optimizations must... X-Git-Tag: xonotic-v0.1.0preview~2046 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8c299342c23186dce2f718ecb4d45b5ac6fd8dc;p=xonotic%2Fdarkplaces.git add a note to the makefile that -ffast-math and -funsafe-math-optimizations must not be used with darkplaces (until further notice) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8543 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/makefile.inc b/makefile.inc index 38a16258..5abd9fc8 100644 --- a/makefile.inc +++ b/makefile.inc @@ -21,6 +21,7 @@ CC=gcc CPUOPTIMIZATIONS?= # Experimental #CPUOPTIMIZATIONS?=-fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math +# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag SDL_CONFIG?=sdl-config SDLCONFIG_UNIXCFLAGS?=`$(SDL_CONFIG) --cflags` @@ -171,6 +172,7 @@ OPTIM_DEBUG=$(CPUOPTIMIZATIONS) #OPTIM_RELEASE=-O2 -fno-strict-aliasing -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signaling-nans -fcx-limited-range -funroll-loops $(CPUOPTIMIZATIONS) #OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS) OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS) +# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag DO_CC=$(CC) $(CFLAGS) -c $< -o $@