Sfoglia il codice sorgente

Some experimental stuff, but NewDefaultPlatform object was undefined,

probably due to embedding the wrong .o file from mksnapshot
master
Ray Burgemeestre 5 anni fa
parent
commit
b0af0c729f
3 ha cambiato i file con 11 aggiunte e 6 eliminazioni
  1. +3
    -3
      v8pp/Makefile
  2. +8
    -2
      v8pp/build-v8.sh
  3. +0
    -1
      v8pp/v8-include.txt

+ 3
- 3
v8pp/Makefile Vedi File

@@ -1,11 +1,11 @@
SHELL:=/bin/bash

v8:
iv8:
# 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
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

bash ../ubuntu1804.sh make build

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

@@ -13,23 +13,29 @@ fetch v8
#gclient sync -r 6.9.427.13 # https://ci.appveyor.com/project/pmed/v8pp
cd v8
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
# git checkout 5.5.372.7

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

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

# workaround, see notes.txt
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_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.
# however, I already set my own, probably newer clang version.
# 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)

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

@@ -1,5 +1,4 @@
./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/third_party/icu/icui18n
./v8/out/x64.release/obj/third_party/icu/icuuc

Loading…
Annulla
Salva