Browse Source

Some experimental stuff, but NewDefaultPlatform object was undefined,

probably due to embedding the wrong .o file from mksnapshot
master
Ray Burgemeestre 5 years ago
parent
commit
b0af0c729f
3 changed files with 11 additions and 6 deletions
  1. +3
    -3
      v8pp/Makefile
  2. +8
    -2
      v8pp/build-v8.sh
  3. +0
    -1
      v8pp/v8-include.txt

+ 3
- 3
v8pp/Makefile View File

SHELL:=/bin/bash SHELL:=/bin/bash


v8:
iv8:
# git clone https://github.com/rayburgemeestre/v8pp # git clone https://github.com/rayburgemeestre/v8pp
# #
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git || true
# will be factored out at some point # will be factored out at some point
git clone https://github.com/pmed/v8pp
git clone https://github.com/pmed/v8pp || true
pushd v8pp && git checkout 8ad6c07b13a811d9132c202f48b4a902d5685a98 # master at time of writing pushd v8pp && git checkout 8ad6c07b13a811d9132c202f48b4a902d5685a98 # master at time of writing


bash ../ubuntu1804.sh make build bash ../ubuntu1804.sh make build

+ 8
- 2
v8pp/build-v8.sh View File

#gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp #gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp
cd v8 cd v8
gclient sync -r 7.5.288.23 # https://github.com/pmed/v8-nuget/ gclient sync -r 7.5.288.23 # https://github.com/pmed/v8-nuget/
#gclient sync -r 8.0.426.15 # stupid test
#gclient sync -r 7.2.1 # stupid test
# old version # old version
# git checkout 5.5.372.7 # git checkout 5.5.372.7


# Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN # Looks like we have to use GN now: https://github.com/v8/v8/wiki/Building-with-GN


# initial build # initial build
# temp
#rm -rf out/x64.release
./tools/dev/gm.py x64.release ./tools/dev/gm.py x64.release


# workaround, see notes.txt # workaround, see notes.txt
echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn echo "v8_enable_embedded_builtins = false" | tee -a out/x64.release/args.gn
echo "v8_use_external_startup_data = false" | tee -a out/x64.release/args.gn echo "v8_use_external_startup_data = false" | tee -a out/x64.release/args.gn
echo "v8_use_snapshot = false" | tee -a out/x64.release/args.gn echo "v8_use_snapshot = false" | tee -a out/x64.release/args.gn
echo "use_custom_libcxx = false" | tee -a out/x64.release/args.gn
echo "use_custom_libcxx = true" | tee -a out/x64.release/args.gn
# possibly they use a different version of clang compiling v8. # possibly they use a different version of clang compiling v8.
# however, I already set my own, probably newer clang version. # however, I already set my own, probably newer clang version.
# ran into: https://groups.google.com/forum/#!topic/v8-users/Jb1VSouy2Z0 # ran into: https://groups.google.com/forum/#!topic/v8-users/Jb1VSouy2Z0
echo "is_clang = false" | tee -a out/x64.release/args.gn
#echo "is_clang = false" | tee -a out/x64.release/args.gn
# setting to true now, and see if we use this clang on starcry if it works..
echo "is_clang = true" | tee -a out/x64.release/args.gn




# produce monolith (single static all in one .a file) # produce monolith (single static all in one .a file)

+ 0
- 1
v8pp/v8-include.txt View File

./v8/out/x64.release/obj/buildtools/third_party/libc++abi/libc++abi ./v8/out/x64.release/obj/buildtools/third_party/libc++abi/libc++abi
./v8/out/x64.release/obj/mksnapshot
./v8/out/x64.release/obj/src/inspector/inspector ./v8/out/x64.release/obj/src/inspector/inspector
./v8/out/x64.release/obj/third_party/icu/icui18n ./v8/out/x64.release/obj/third_party/icu/icui18n
./v8/out/x64.release/obj/third_party/icu/icuuc ./v8/out/x64.release/obj/third_party/icu/icuuc

Loading…
Cancel
Save