Skip to content

Commit

Permalink
重命名mutex.o和string.o
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Dec 5, 2024
1 parent a8ea099 commit 371a69f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rename_symbols_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ llvm-objcopy \

mkdir v8_custom_libcxx
cd v8_custom_libcxx
mv mutex.o mutex_cxx.o
llvm-ar x ../libv8_custom_libcxx.a
mv mutex.o mutex_cxx.o
mv string.o string_cxx.o
cd -
llvm-ar rcs out.gn/$ARCH.release/obj/libwee8.a v8_custom_libcxx/*.o
3 changes: 2 additions & 1 deletion rename_symbols_posix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ llvm-objcopy \

mkdir v8_custom_libcxx
cd v8_custom_libcxx
mv mutex.o mutex_cxx.o
llvm-ar x ../libv8_custom_libcxx.a
mv mutex.o mutex_cxx.o
mv string.o string_cxx.o
cd -
llvm-ar rcs out.gn/$ARCH.release/obj/libwee8.a v8_custom_libcxx/*.o
4 changes: 4 additions & 0 deletions rename_symbols_win.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ llvm-objcopy ^
call ninja -v -C out.gn\%ARCH%.release d8

echo "gen v8_custom_libcxx.lib"
pushd out.gn\%ARCH%.release\obj\buildtools\third_party\libc++\libc++\
ren mutex.obj mutex_cxx.obj
ren string.obj string_cxx.obj
popd
lib.exe /OUT:v8_custom_libcxx.lib out.gn\%ARCH%.release\obj\buildtools\third_party\libc++\libc++\*.obj
dir

Expand Down

0 comments on commit 371a69f

Please sign in to comment.