scons: Produce map files for debug builds too.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 18 Feb 2009 15:05:23 +0000 (15:05 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 18 Feb 2009 15:05:23 +0000 (15:05 +0000)
scons/gallium.py
scons/generic.py

index 33bd65dd54366364689dbbe3db427ca5f08d5428..2e490dde6e9adc082328f2e6796bc60070a570e5 100644 (file)
@@ -444,7 +444,7 @@ def generate(env):
 
             '/entry:DrvEnableDriver',
         ]
-        if env['profile']:
+        if env['debug'] or env['profile']:
             linkflags += [
                 '/MAP', # http://msdn.microsoft.com/en-us/library/k7xkk3e2.aspx
             ]
index 0ed21a4e6ce13ed5e3db47ef01860ac3e349dd3e..db77ca238acf7d5deabdc85037f0cf64ec1b6746 100644 (file)
@@ -512,7 +512,7 @@ def generate(env):
 
             '/entry:DrvEnableDriver',
         ]
-        if env['profile']:
+        if env['debug'] or env['profile']:
             linkflags += [
                 '/MAP', # http://msdn.microsoft.com/en-us/library/k7xkk3e2.aspx
             ]