Find .ext/common path from LOAD_PATH for out-of-place build
This commit is contained in:
parent
8dccf5a334
commit
b45f7a54af
Notes:
git
2024-11-15 05:04:37 +00:00
@ -55,7 +55,8 @@ module Gem::BUNDLED_GEMS
|
||||
conf = ::RbConfig::CONFIG
|
||||
if ENV["TEST_BUNDLED_GEMS"]
|
||||
LIBDIR = (File.expand_path(File.join(__dir__, "..", "lib")) + "/").freeze
|
||||
ARCHDIR = (File.expand_path(File.join(__dir__, "..", ".ext/common")) + "/").freeze
|
||||
rubyarchdir = $LOAD_PATH.find{|path| path.include?(".ext/common") }
|
||||
ARCHDIR = (File.expand_path(rubyarchdir) + "/").freeze
|
||||
else
|
||||
LIBDIR = (conf["rubylibdir"] + "/").freeze
|
||||
ARCHDIR = (conf["rubyarchdir"] + "/").freeze
|
||||
|
Loading…
x
Reference in New Issue
Block a user