8000 Fix extension installer for out-of-place build · ruby/ruby@8dda932 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 8dda932

Browse files
hsbtk0kubun
authored andcommitted
Fix extension installer for out-of-place build
#9673 (comment)
1 parent cf46084 commit 8dda932

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tool/rbinstall.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,12 @@ def ext_features
784784
end
785785

786786
def makefile_path
787-
"#{makefile_dir}/Makefile"
787+
if File.exist?("#{makefile_dir}/Makefile")
788+
"#{makefile_dir}/Makefile"
789+
else
790+
# for out-of-place build
791+
"#{$ext_build_dir}/#{relative_base}/Makefile"
792+
end
788793
end
789794

790795
def makefile_dir

0 commit comments

Comments
 (0)
0