summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-09-27 17:01:57 -0500
committerDave Parks <davep@lindenlab.com>2012-09-27 17:01:57 -0500
commit603a48af9479ad119a4526a80ac24c866c2bc1c9 (patch)
treeeb48db791c21279cd1a8f4cf1adfa77f40ea3c34 /indra
parent39907b9b565eafb859101e67d0a49a69e409241a (diff)
Yet another attempt at deleting tcmalloc
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/viewer_manifest.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 175c6f9903..87366caf1b 100644
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -404,9 +404,11 @@ class WindowsManifest(ViewerManifest):
self.path("libhunspell.dll")
# For google-perftools tcmalloc allocator.
- # no longer used, make sure old .dll is removed
try:
- self.remove(self.dst_path_of('libtcmalloc_minimal.dll'))
+ if self.args['configuration'].lower() == 'debug':
+ self.path('libtcmalloc_minimal-debug.dll')
+ else:
+ self.path('libtcmalloc_minimal.dll')
except:
print "Skipping libtcmalloc_minimal.dll"
@@ -535,6 +537,10 @@ class WindowsManifest(ViewerManifest):
result += 'File ' + pkg_file + '\n'
else:
result += 'Delete ' + wpath(os.path.join('$INSTDIR', rel_file)) + '\n'
+
+ if install
+ result += 'Delete ' + wpath(os.path.join('$INSTDIR', 'libtcmalloc_minimal.dll')) + '\n'
+
# at the end of a delete, just rmdir all the directories
if not install:
deleted_file_dirs = [os.path.dirname(pair[1].replace(self.get_dst_prefix()+os.path.sep,'')) for pair in self.file_list]