summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/prep_libc.sh
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 21:30:20 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 21:30:20 +0000
commit59c098679b18b4b8f731cf7041f4506616327663 (patch)
treeffca9b31063c8916cbcb148643b0db889659c3ae /third_party/tcmalloc/prep_libc.sh
parentf1c225c9ecc8b8d682af60e27858835ef365337e (diff)
downloadchromium_src-59c098679b18b4b8f731cf7041f4506616327663.zip
chromium_src-59c098679b18b4b8f731cf7041f4506616327663.tar.gz
chromium_src-59c098679b18b4b8f731cf7041f4506616327663.tar.bz2
Start pulling tcmalloc into the build. Not using it yet
with this checkin. Review URL: http://codereview.chromium.org/79085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/tcmalloc/prep_libc.sh')
-rw-r--r--third_party/tcmalloc/prep_libc.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/tcmalloc/prep_libc.sh b/third_party/tcmalloc/prep_libc.sh
new file mode 100644
index 0000000..b3e1b82
--- /dev/null
+++ b/third_party/tcmalloc/prep_libc.sh
@@ -0,0 +1,37 @@
+#!/bin/sh -x
+# This script takes libcmt.lib for VS2005 and removes the allocation related
+# functions from it.
+#
+# Usage: prep_libcmt.bat <VCInstallDir> <OutputFile>
+#
+# VCInstallDir is the path where VC is installed, typically:
+# C:\Program Files\Microsoft Visual Studio 8\VC\
+#
+# OutputFile is the directory where the modified libcmt file should be stored.
+#
+
+LIBCMT="${1}\\libcmt.lib"
+LIBCMTPDB="${1}\\libcmt.pdb"
+OUTDIR=$2
+OUTCMT="${2}\\libcmt.lib"
+
+mkdir $OUTDIR
+cp "$LIBCMT" "$OUTDIR"
+cp "$LIBCMTPDB" "$OUTDIR"
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\malloc.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\free.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\realloc.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\calloc.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\new.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\delete.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\new2.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\delete2.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\align.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\msize.obj $OUTCMT
+
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapinit.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\expand.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapchk.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapwalk.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapmin.obj $OUTCMT
+LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\sbheap.obj $OUTCMT