Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit d5e213d

Browse files
committed
Add back '/include' to the include path
1 parent 2da1921 commit d5e213d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ext/libv8/location.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def configure(context = MkmfContext.new)
3434

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

ext/libv8/paths.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Paths
77
module_function
88

99
def include_paths
10-
[Shellwords.escape(vendored_source_path)]
10+
[Shellwords.escape(File.join(vendored_source_path, 'include'))]
1111
end
1212

1313
def object_paths

0 commit comments

Comments
 (0)