diff options
Diffstat (limited to 'third_party/tcmalloc/prep_libc.sh')
-rw-r--r-- | third_party/tcmalloc/prep_libc.sh | 37 |
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 |