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:
parent
2da19215f6
commit
d5e213d62c
2 changed files with 3 additions and 3 deletions
|
@ -34,8 +34,8 @@ module Libv8
|
||||||
|
|
||||||
def verify_installation!
|
def verify_installation!
|
||||||
include_paths = Libv8::Paths.include_paths
|
include_paths = Libv8::Paths.include_paths
|
||||||
unless include_paths.detect { |p| Pathname(p).join('include/v8.h').exist? }
|
unless include_paths.detect { |p| Pathname(p).join('v8.h').exist? }
|
||||||
fail HeaderNotFound, "Unable to locate 'include/v8.h' in the libv8 header paths: #{include_paths.inspect}"
|
fail HeaderNotFound, "Unable to locate 'v8.h' in the libv8 header paths: #{include_paths.inspect}"
|
||||||
end
|
end
|
||||||
Libv8::Paths.object_paths.each do |p|
|
Libv8::Paths.object_paths.each do |p|
|
||||||
fail ArchiveNotFound, p unless File.exist? p
|
fail ArchiveNotFound, p unless File.exist? p
|
||||||
|
|
|
@ -7,7 +7,7 @@ module Libv8
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def include_paths
|
def include_paths
|
||||||
[Shellwords.escape(vendored_source_path)]
|
[Shellwords.escape(File.join(vendored_source_path, 'include'))]
|
||||||
end
|
end
|
||||||
|
|
||||||
def object_paths
|
def object_paths
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue