mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Create and package external snapshot
This commit is contained in:
parent
8d98d3eb7f
commit
54290a5935
4 changed files with 3 additions and 5 deletions
1
Rakefile
1
Rakefile
|
@ -36,6 +36,7 @@ task :binary => :compile do
|
|||
# V8
|
||||
gemspec.files += Dir['vendor/v8/include/**/*.h']
|
||||
gemspec.files += Dir['vendor/v8/out/**/*.a']
|
||||
gemspec.files += Dir['vendor/v8/out/**/*.bin']
|
||||
|
||||
FileUtils.chmod 0644, gemspec.files
|
||||
FileUtils.mkdir_p 'pkg'
|
||||
|
|
|
@ -26,9 +26,6 @@ module Libv8
|
|||
end
|
||||
|
||||
def gyp_defines(*defines)
|
||||
# Do not use an external snapshot as we don't really care for binary size
|
||||
defines << 'v8_use_external_startup_data=0'
|
||||
|
||||
# Do not use the GPLv3 ld.gold binary on Linux
|
||||
defines << 'linux_use_bundled_gold=0'
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ module Libv8
|
|||
end
|
||||
|
||||
def object_paths
|
||||
[:base, :libplatform, :libbase, :snapshot].map do |name|
|
||||
[:base, :libplatform, :libbase, :external_snapshot].map do |name|
|
||||
Shellwords.escape libv8_object(name)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -64,7 +64,7 @@ describe "libv8 locations" do
|
|||
end
|
||||
|
||||
it "prepends the locations of any libv8 objects on the the ldflags" do
|
||||
expect(@context.ldflags).to eql "/foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a /foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_libplatform.a /foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_libbase.a /foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_snapshot.a -lobjc -lpthread"
|
||||
expect(@context.ldflags).to eql "/foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a /foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_libplatform.a /foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_libbase.a /foo\\ bar/v8/out/x64.release/obj.target/tools/gyp/libv8_external_snapshot.a -lobjc -lpthread"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue