[SCONS] Optimisation flags for msvc

This commit is contained in:
Nathan Letwory
2004-04-22 04:50:41 +00:00
parent 0d0ab24e4a
commit 892720ffad
6 changed files with 14 additions and 5 deletions
+2
View File
@@ -8,6 +8,8 @@ Import ('defines')
Import ('user_options_dict')
if sys.platform=='linux2' or sys.platform=='linux-i386':
qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
elif sys.platform=='win32':
qhull_env.Append (CCFLAGS = ['/O2'])
elif sys.platform=='sunos':
qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
else:
+3 -2
View File
@@ -11,8 +11,9 @@ cflags = []
cxxflags = []
if sys.platform=='win32':
defines += ['WIN32','NDEBUG', '_WINDOWS', '_LIB']
cflags += ['/MT', '/W3', '/GX', '/O2']
defines += ['WIN32','NDEBUG', '_WINDOWS', '_LIB']
#cflags += ['/MT', '/W3', '/GX', '/O2', '/Op']
cflags += ['/MT', '/W3', '/GX', '/Og', '/Ot', '/Ob1', '/Op', '/G6']
elif sys.platform=='linux2' or sys.platform=='linux-i386':
defines += ['NDEBUG']
cflags += ['-O2']