summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scons/gallium.py2
-rw-r--r--scons/generic.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 33bd65dd5..2e490dde6 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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
]
diff --git a/scons/generic.py b/scons/generic.py
index 0ed21a4e6..db77ca238 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -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
]