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

Add back '/include' to the include path

This commit is contained in:
Petko Bordjukov 2016-06-10 20:39:25 +03:00
parent 2da19215f6
commit d5e213d62c
2 changed files with 3 additions and 3 deletions

View file

@ -34,8 +34,8 @@ module Libv8
def verify_installation!
include_paths = Libv8::Paths.include_paths
unless include_paths.detect { |p| Pathname(p).join('include/v8.h').exist? }
fail HeaderNotFound, "Unable to locate 'include/v8.h' in the libv8 header paths: #{include_paths.inspect}"
unless include_paths.detect { |p| Pathname(p).join('v8.h').exist? }
fail HeaderNotFound, "Unable to locate 'v8.h' in the libv8 header paths: #{include_paths.inspect}"
end
Libv8::Paths.object_paths.each do |p|
fail ArchiveNotFound, p unless File.exist? p

View file

@ -7,7 +7,7 @@ module Libv8
module_function
def include_paths
[Shellwords.escape(vendored_source_path)]
[Shellwords.escape(File.join(vendored_source_path, 'include'))]
end
def object_paths