summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-03-12 13:34:30 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-03-12 13:34:30 +0000
commit4f17bd270e23b7912f0634c2106ea146c9ddd1ee (patch)
treec0aa2ef1fc8d00f139e737077d75c8f109eb232e /SConstruct
parent8fd633b5cfa36e0cf0acef096315c9250015aba7 (diff)
scons: Faithfully mimic every WINDDK builtin compiler/linker option.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct26
1 files changed, 7 insertions, 19 deletions
diff --git a/SConstruct b/SConstruct
index 6088128010..4785e39ec5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -113,17 +113,9 @@ if gcc:
env.Append(CXXFLAGS = '-fmessage-length=0')
if msvc:
- env.Append(CFLAGS = '/W3')
- if debug:
- cflags = [
- '/Od', # disable optimizations
- '/Oy-', # disable frame pointer omission
- ]
- else:
- cflags = [
- '/Ox', # maximum optimizations
- '/Os', # favor code space
- ]
+ cflags = [
+ #'/Wp64', # enable 64 bit porting warnings
+ ]
env.Append(CFLAGS = cflags)
env.Append(CXXFLAGS = cflags)
# Put debugging information in a separate .pdb file for each object file as
@@ -132,14 +124,7 @@ if msvc:
# Defines
if debug:
- if gcc:
- env.Append(CPPDEFINES = ['DEBUG'])
- if msvc:
- env.Append(CPPDEFINES = [
- ('DBG', '1'),
- ('DEBUG', '1'),
- ('_DEBUG', '1'),
- ])
+ env.Append(CPPDEFINES = ['DEBUG'])
else:
env.Append(CPPDEFINES = ['NDEBUG'])
@@ -217,6 +202,9 @@ if platform not in ('winddk',):
'Xfixes',
])
+# for debugging
+#print env.Dump()
+
Export('env')