1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Set the GYP_DEFINES environment variable when syncing dependencies

This closes #233
This commit is contained in:
Petko Bordjukov 2017-03-29 10:12:54 +03:00
parent 51d779b98e
commit 683c5f8ee8
2 changed files with 4 additions and 4 deletions

View file

@ -110,15 +110,15 @@ module Libv8
ENV['PATH'] = "#{File.expand_path('../../../vendor/depot_tools', __FILE__)}:#{ENV['PATH']}"
Dir.chdir(File.expand_path('../../../vendor', __FILE__)) do
unless Dir.exists? 'v8'
system "fetch v8" or fail "unable to fetch v8 source"
system "env #{gyp_defines} fetch v8" or fail "unable to fetch v8 source"
else
system "gclient fetch" or fail "could not fetch v8 build dependencies commits"
system "env #{gyp_defines} gclient fetch" or fail "could not fetch v8 build dependencies commits"
end
Dir.chdir('v8') do
unless system "git checkout #{source_version}"
fail "unable to checkout source for v8 #{source_version}"
end
system "gclient sync" or fail "could not sync v8 build dependencies"
system "env #{gyp_defines} gclient sync" or fail "could not sync v8 build dependencies"
system "git checkout Makefile" # Work around a weird bug on FreeBSD
end
end

View file

@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
config.vm.box = "freebsd/FreeBSD-11.0-STABLE"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs