Skip to content

Commit

Permalink
v8_use_external_startup_data=false fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Aug 21, 2023
1 parent bd4c503 commit d25ea60
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 40 deletions.
4 changes: 1 addition & 3 deletions android_armv7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ v8_enable_i18n_support= false
v8_target_cpu = "arm"
use_goma = false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_absolute_paths_from_debug_symbols = false
strip_debug_info = false
Expand All @@ -75,8 +75,6 @@ ninja -C out.gn/arm.release -t clean
ninja -C out.gn/arm.release wee8
third_party/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/bin/strip -g -S -d --strip-debug --verbose out.gn/arm.release/obj/libwee8.a

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "android armv7" out.gn/arm.release/snapshot_blob.bin

mkdir -p output/v8/Lib/Android/armeabi-v7a
cp out.gn/arm.release/obj/libwee8.a output/v8/Lib/Android/armeabi-v7a/
mkdir -p output/v8/Inc/Blob/Android/armv7a
Expand Down
4 changes: 1 addition & 3 deletions android_armv8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ v8_enable_i18n_support= false
v8_target_cpu = "arm64"
use_goma = false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_debug_info = false
symbol_level=1
Expand All @@ -67,8 +67,6 @@ ninja -C out.gn/arm64.release -t clean
ninja -C out.gn/arm64.release wee8
third_party/android_ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/strip -g -S -d --strip-debug --verbose out.gn/arm64.release/obj/libwee8.a

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "android arm64" out.gn/arm64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/Android/arm64-v8a
cp out.gn/arm64.release/obj/libwee8.a output/v8/Lib/Android/arm64-v8a/
mkdir -p output/v8/Inc/Blob/Android/arm64
Expand Down
4 changes: 1 addition & 3 deletions android_x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ v8_enable_i18n_support= false
v8_target_cpu = "x64"
use_goma = false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_debug_info = false
symbol_level=1
Expand All @@ -67,8 +67,6 @@ ninja -C out.gn/x64.release -t clean
ninja -C out.gn/x64.release wee8
third_party/android_ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/x86_64-linux-android/bin/strip -g -S -d --strip-debug --verbose out.gn/x64.release/obj/libwee8.a

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "android x64" out.gn/x64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/Android/x64
cp out.gn/x64.release/obj/libwee8.a output/v8/Lib/Android/x64/
mkdir -p output/v8/Inc/Blob/Android/x64
Expand Down
4 changes: 1 addition & 3 deletions ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ node $GITHUB_WORKSPACE/node-script/add_arraybuffer_new_without_stl.js .

echo "=====[ Building V8 ]====="
python ./tools/dev/v8gen.py arm64.release -vv -- '
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_use_snapshot = true
v8_enable_i18n_support = false
is_debug = false
Expand All @@ -45,8 +45,6 @@ ninja -C out.gn/arm64.release -t clean
ninja -C out.gn/arm64.release wee8
strip -S out.gn/arm64.release/obj/libwee8.a

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "ios arm64" out.gn/arm64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/iOS/arm64
cp out.gn/arm64.release/obj/libwee8.a output/v8/Lib/iOS/arm64/
mkdir -p output/v8/Inc/Blob/iOS/arm64
Expand Down
4 changes: 1 addition & 3 deletions ios_simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ node $GITHUB_WORKSPACE/node-script/add_arraybuffer_new_without_stl.js .

echo "=====[ Building V8 ]====="
python ./tools/dev/v8gen.py x64.release -vv -- '
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_use_snapshot = true
v8_enable_i18n_support = false
is_debug = false
Expand All @@ -47,8 +47,6 @@ ninja -C out.gn/x64.release -t clean
ninja -C out.gn/x64.release wee8
strip -S out.gn/x64.release/obj/libwee8.a

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "ios x64" out.gn/x64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/iOS/x64
cp out.gn/x64.release/obj/libwee8.a output/v8/Lib/iOS/x64/
mkdir -p output/v8/Inc/Blob/iOS/x64
Expand Down
4 changes: 1 addition & 3 deletions linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ python ./tools/dev/v8gen.py x64.release -vv -- '
is_debug = false
v8_enable_i18n_support= false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_debug_info = true
symbol_level=0
Expand All @@ -45,8 +45,6 @@ v8_enable_pointer_compression=false
ninja -C out.gn/x64.release -t clean
ninja -C out.gn/x64.release wee8

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "linux" out.gn/x64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/Linux
cp out.gn/x64.release/obj/libwee8.a output/v8/Lib/Linux/
mkdir -p output/v8/Inc/Blob/Linux
Expand Down
4 changes: 1 addition & 3 deletions linux_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ target_cpu = "arm64"
v8_target_cpu = "arm64"
v8_enable_i18n_support= false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_debug_info = true
symbol_level=0
Expand All @@ -49,8 +49,6 @@ v8_enable_pointer_compression=false
ninja -C out.gn/arm64.release -t clean
ninja -C out.gn/arm64.release wee8

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "Linux_arm64" out.gn/arm64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/Linux_arm64
cp out.gn/arm64.release/obj/libwee8.a output/v8/Lib/Linux_arm64/
mkdir -p output/v8/Inc/Blob/Linux_arm64
Expand Down
4 changes: 1 addition & 3 deletions macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ python ./tools/dev/v8gen.py x64.release -vv -- '
is_debug = false
v8_enable_i18n_support= false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_debug_info = true
symbol_level=0
Expand All @@ -44,8 +44,6 @@ v8_enable_pointer_compression=false
ninja -C out.gn/x64.release -t clean
ninja -C out.gn/x64.release wee8

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "osx 64" out.gn/x64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/macOS
cp out.gn/x64.release/obj/libwee8.a output/v8/Lib/macOS/
mkdir -p output/v8/Inc/Blob/macOS
Expand Down
2 changes: 1 addition & 1 deletion macos_DLL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ python ./tools/dev/v8gen.py x64.release -vv -- '
is_debug = false
v8_enable_i18n_support= false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
is_component_build = true
strip_debug_info = true
symbol_level=0
Expand Down
4 changes: 1 addition & 3 deletions macos_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ target_cpu = "arm64"
v8_target_cpu = "arm64"
v8_enable_i18n_support= false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
v8_static_library = true
strip_debug_info = true
symbol_level=0
Expand All @@ -46,8 +46,6 @@ v8_enable_pointer_compression=false
ninja -C out.gn/arm64.release -t clean
ninja -C out.gn/arm64.release wee8

node $GITHUB_WORKSPACE/node-script/genBlobHeader.js "osx 64" out.gn/arm64.release/snapshot_blob.bin

mkdir -p output/v8/Lib/macOS_arm64
cp out.gn/arm64.release/obj/libwee8.a output/v8/Lib/macOS_arm64/
mkdir -p output/v8/Inc/Blob/macOS_arm64
Expand Down
2 changes: 1 addition & 1 deletion macos_arm64_DLL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ target_cpu = "arm64"
v8_target_cpu = "arm64"
v8_enable_i18n_support= false
v8_use_snapshot = true
v8_use_external_startup_data = true
v8_use_external_startup_data = false
is_component_build = true
strip_debug_info = true
symbol_level=0
Expand Down
4 changes: 1 addition & 3 deletions windows_32.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ echo =====[ add ArrayBuffer_New_Without_Stl ]=====
node %~dp0\node-script\add_arraybuffer_new_without_stl.js .

echo =====[ Building V8 ]=====
call gn gen out.gn\x86.release -args="target_os=""win"" target_cpu=""x86"" v8_use_external_startup_data=true v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false"
call gn gen out.gn\x86.release -args="target_os=""win"" target_cpu=""x86"" v8_use_external_startup_data=false v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false"

call ninja -C out.gn\x86.release -t clean
call ninja -C out.gn\x86.release wee8

node %~dp0\node-script\genBlobHeader.js "window x86" out.gn\x86.release\snapshot_blob.bin

md output\v8\Lib\Win32
copy /Y out.gn\x86.release\obj\wee8.lib output\v8\Lib\Win32\
md output\v8\Inc\Blob\Win32
Expand Down
4 changes: 1 addition & 3 deletions windows_64.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ echo =====[ add ArrayBuffer_New_Without_Stl ]=====
node %~dp0\node-script\add_arraybuffer_new_without_stl.js .

echo =====[ Building V8 ]=====
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=true v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false"
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=false v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false"

call ninja -C out.gn\x64.release -t clean
call ninja -C out.gn\x64.release wee8

node %~dp0\node-script\genBlobHeader.js "window x64" out.gn\x64.release\snapshot_blob.bin

md output\v8\Lib\Win64
copy /Y out.gn\x64.release\obj\wee8.lib output\v8\Lib\Win64\
md output\v8\Inc\Blob\Win64
Expand Down
4 changes: 1 addition & 3 deletions windows_64MD.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ echo =====[ add ArrayBuffer_New_Without_Stl ]=====
node %~dp0\node-script\add_arraybuffer_new_without_stl.js .

echo =====[ Building V8 ]=====
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=true v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false"
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=false v8_enable_i18n_support=false is_debug=false v8_static_library=true is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false"

call ninja -C out.gn\x64.release -t clean
call ninja -C out.gn\x64.release wee8

node %~dp0\node-script\genBlobHeader.js "window x64" out.gn\x64.release\snapshot_blob.bin

md output\v8\Lib\Win64MD
copy /Y out.gn\x64.release\obj\wee8.lib output\v8\Lib\Win64MD\
md output\v8\Inc\Blob\Win64MD
Expand Down
2 changes: 1 addition & 1 deletion windows_64MD_DLL.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ echo =====[ add ArrayBuffer_New_Without_Stl ]=====
node %~dp0\node-script\add_arraybuffer_new_without_stl.js .

echo =====[ Building V8 ]=====
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=true v8_enable_i18n_support=false is_debug=false is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false is_component_build=true"
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=false v8_enable_i18n_support=false is_debug=false is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false is_component_build=true"

call ninja -C out.gn\x64.release -t clean
call ninja -C out.gn\x64.release v8
Expand Down
2 changes: 1 addition & 1 deletion windows_64MD_DLL_94.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ echo =====[ add ArrayBuffer_New_Without_Stl ]=====
node %~dp0\node-script\add_arraybuffer_new_without_stl.js .

echo =====[ Building V8 ]=====
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=true v8_enable_i18n_support=false is_debug=false is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false is_component_build=true"
call gn gen out.gn\x64.release -args="target_os=""win"" target_cpu=""x64"" v8_use_external_startup_data=false v8_enable_i18n_support=false is_debug=false is_clang=false strip_debug_info=true symbol_level=0 v8_enable_pointer_compression=false is_component_build=true"

call ninja -C out.gn\x64.release -t clean
call ninja -C out.gn\x64.release v8
Expand Down

0 comments on commit d25ea60

Please sign in to comment.