summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-03-26 11:10:20 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2024-05-28 13:30:26 -0700
commit8dda932bcded3607c189d169333bbad0860d7efd (patch)
treeb87072c9b84c22e6b0902e9ce69e9f1457d42bf0
parentcf460840b825f2fd7521b0ae211353080d33ceef (diff)
Fix extension installer for out-of-place build
https://github.com/ruby/ruby/pull/9673#issuecomment-2019028293
-rwxr-xr-xtool/rbinstall.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index c3926e98ec..97fe1eab45 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -784,7 +784,12 @@ module RbInstall
end
def makefile_path
- "#{makefile_dir}/Makefile"
+ if File.exist?("#{makefile_dir}/Makefile")
+ "#{makefile_dir}/Makefile"
+ else
+ # for out-of-place build
+ "#{$ext_build_dir}/#{relative_base}/Makefile"
+ end
end
def makefile_dir