From d5e213d62c7ea97ec17b1c25dacf667e04a73ddb Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Fri, 10 Jun 2016 20:39:25 +0300 Subject: [PATCH] Add back '/include' to the include path --- ext/libv8/location.rb | 4 ++-- ext/libv8/paths.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/libv8/location.rb b/ext/libv8/location.rb index 572680f..bc4111b 100644 --- a/ext/libv8/location.rb +++ b/ext/libv8/location.rb @@ -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 diff --git a/ext/libv8/paths.rb b/ext/libv8/paths.rb index ec403f5..85b04d0 100644 --- a/ext/libv8/paths.rb +++ b/ext/libv8/paths.rb @@ -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