mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use PWD instead of source_root
Because `.ext/common` is not relative from top source directory. Fix failures with out-of-place build directory.
This commit is contained in:
parent
7cd97a81d1
commit
763d242fcd
1 changed files with 2 additions and 1 deletions
|
|
@ -1340,7 +1340,8 @@ end
|
|||
# override the default gem.
|
||||
def load_path_exclusions_hack_for(name)
|
||||
if ruby_core?
|
||||
ext_folder = source_root.join(".ext/common")
|
||||
# .ext/common is relative from build directory
|
||||
ext_folder = Pathname(ENV["PWD"]) + ".ext/common"
|
||||
require_name = name.tr("-", "/")
|
||||
if File.exist?(ext_folder.join("#{require_name}.rb"))
|
||||
{ :exclude_from_load_path => ext_folder.to_s }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue