]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
The release config for radiant target was busted on Linux in SCons build.
authorrambetter <rambetter@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Thu, 24 Feb 2011 03:53:03 +0000 (03:53 +0000)
committerrambetter <rambetter@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Thu, 24 Feb 2011 03:53:03 +0000 (03:53 +0000)
Problem was that the compile flags were overly aggressive and caused segfaults.
They included: -O3 -Winline -ffast-math -fno-unsafe-math-optimizations
  -fno-strict-aliasing
Changed to: -O2 -fno-strict-aliasing
From my experience, -O3 is usually a bad idea.

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@476 8a3a26a2-13c4-0310-b231-cf6edde360e5

config.py

index 07b6483e3676f4e4d89dbbf3994bd52812b00620..ae94c878c5ad0bc5548c711ca84bec01f624b020 100644 (file)
--- a/config.py
+++ b/config.py
@@ -246,8 +246,8 @@ class Config:
                        env.Append( CXXFLAGS = [ '-g' ] )
                        env.Append( CPPDEFINES = [ '_DEBUG' ] )
                else:
-                       env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fno-strict-aliasing' ] )
-                       env.Append( CXXFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations','-fno-strict-aliasing' ] )
+                       env.Append( CFLAGS = [ '-O2', '-fno-strict-aliasing' ] )
+                       env.Append( CXXFLAGS = [ '-O2', '-fno-strict-aliasing' ] )
 
        def CheckoutOrUpdate( self, svnurl, path ):
                if ( os.path.exists( path ) ):