This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ lib/libv8/VERSION
1313/release /** /libv8
1414/release /** /.vagrant
1515/release /** /.scaleway
16+ /vendor /.gclient
17+ /vendor /.gclient_entries
18+ /vendor /v8 /
Original file line number Diff line number Diff line change 11[submodule "vendor/depot_tools "]
22 path = vendor/depot_tools
33 url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
4- [submodule "vendor/v8 "]
5- path = vendor/v8
6- url = https://chromium.googlesource.com/v8/v8.git
Original file line number Diff line number Diff line change 102102desc "clean up artifacts of the build"
103103task :clean => [ :clean_submodules ] do
104104 sh "rm -rf pkg"
105+ sh "rm -rf vendor/v8"
105106 sh "git clean -dxf -e .bundle -e vendor/bundle"
106107end
107108
Original file line number Diff line number Diff line change @@ -112,12 +112,19 @@ def source_version
112112 #
113113 def setup_build_deps!
114114 ENV [ 'PATH' ] = "#{ File . expand_path ( '../../../vendor/depot_tools' , __FILE__ ) } :#{ ENV [ 'PATH' ] } "
115- Dir . chdir ( File . expand_path ( '../../../vendor/v8' , __FILE__ ) ) do
116- unless system "git checkout #{ source_version } "
117- fail "unable to checkout source for v8 #{ source_version } "
115+ Dir . chdir ( File . expand_path ( '../../../vendor' , __FILE__ ) ) do
116+ unless Dir . exists? 'v8'
117+ system "env #{ gyp_defines } fetch v8" or fail "unable to fetch v8 source"
118+ else
119+ system "env #{ gyp_defines } gclient fetch" or fail "could not fetch v8 build dependencies commits"
120+ end
121+ Dir . chdir ( 'v8' ) do
122+ unless system "git checkout #{ source_version } "
123+ fail "unable to checkout source for v8 #{ source_version } "
124+ end
125+ system "env #{ gyp_defines } gclient sync" or fail "could not sync v8 build dependencies"
126+ system "git checkout Makefile" # Work around a weird bug on FreeBSD
118127 end
119- system "env #{ gyp_defines } gclient sync -n" or fail "could not sync v8 build dependencies"
120- system "git checkout Makefile" # Work around a weird bug on FreeBSD
121128 end
122129 end
123130
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments