Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/tcmalloc/prep_libc.sh

Issue 92037: Fix linker errors on Visual Studio 2008 after the tcmalloc introduction.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh -x 1 #!/bin/sh -x
2 # This script takes libcmt.lib for VS2005 and removes the allocation related 2 # This script takes libcmt.lib for VS2005 and removes the allocation related
3 # functions from it. 3 # functions from it.
4 # 4 #
5 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile> 5 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile>
6 # 6 #
7 # VCInstallDir is the path where VC is installed, typically: 7 # VCInstallDir is the path where VC is installed, typically:
8 # C:\Program Files\Microsoft Visual Studio 8\VC\ 8 # C:\Program Files\Microsoft Visual Studio 8\VC\
9 # 9 #
10 # OutputFile is the directory where the modified libcmt file should be stored. 10 # OutputFile is the directory where the modified libcmt file should be stored.
11 # 11 #
12 12
13 LIBCMT="${1}\\libcmt.lib" 13 LIBCMT="${1}\\libcmt.lib"
14 LIBCMTPDB="${1}\\libcmt.pdb" 14 LIBCMTPDB="${1}\\libcmt.pdb"
15 OUTDIR=$2 15 OUTDIR=$2
16 OUTCMT="${2}\\libcmt.lib" 16 OUTCMT="${2}\\libcmt.lib"
17 17
18 mkdir $OUTDIR 18 mkdir $OUTDIR
19 cp "$LIBCMT" "$OUTDIR" 19 cp "$LIBCMT" "$OUTDIR"
20 cp "$LIBCMTPDB" "$OUTDIR" 20 cp "$LIBCMTPDB" "$OUTDIR"
21 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\malloc.obj $OUTCMT
22 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\free.obj $OUTCMT
23 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\realloc.obj $OUTCMT
24 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\calloc.obj $OUTCMT
25 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\new.obj $OUTCMT
26 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\delete.obj $OUTCMT
27 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\new2.obj $OUTCMT
28 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\delete2.obj $OUTCMT
29 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\align.obj $OUTCMT
30 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\msize.obj $OUTCMT
31 21
32 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapinit.obj $OUTCMT 22
33 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\expand.obj $OUTCMT 23 # We'll remove the symbols based on paths found in either the VS2005 or VS2008
34 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapchk.obj $OUTCMT 24 # libcmt.lib files.
35 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapwalk.obj $OUTCMT 25 LIBCMTSRCPATHVS2005="build\\intel\\mt_obj\\"
36 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\heapmin.obj $OUTCMT 26 LIBCMTSRCPATHVS2008="f:\\dd\\vctools\\crt_bld\\SELF_X86\\crt\\src\\build\\INTEL\ \mt_obj\\"
wtc 2009/04/23 16:13:55 Is the hardcoded F: drive in the VS 2008 pathname
37 LIB /IGNORE:4006,4221 /REMOVE:build\\intel\\mt_obj\\sbheap.obj $OUTCMT 27
28 OBJFILES="malloc.obj free.obj realloc.obj new.obj delete.obj new2.obj delete2.ob j align.obj msize.obj heapinit.obj expand.obj heapchk.obj heapwalk.obj heapmin.o bj sbheap.obj calloc.obj recalloc.obj calloc_impl.obj"
29
30 for FILE in $OBJFILES
31 do
32 LIB /IGNORE:4006,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTCMT
33 LIB /IGNORE:4006,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTCMT
34 done
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698