diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-03-26 11:10:20 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-03-26 11:10:20 +0900 |
| commit | b39057f32cdcf15d8586bd1629d5fc78038320b7 (patch) | |
| tree | f8eff578640ef1f319cf95f98da12fc5d29f3e8e | |
| parent | de742b425fde96283e6a5ac60da8cbdb12291bb9 (diff) | |
Fix extension installer for out-of-place build
https://github.com/ruby/ruby/pull/9673#issuecomment-2019028293
| -rwxr-xr-x | tool/rbinstall.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index cdaeff6668..63f4beb943 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -588,7 +588,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 |
