summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-10-21 14:52:23 +0900
committernagachika <nagachika@ruby-lang.org>2022-10-21 14:52:23 +0900
commitc5a0856b4b34ecd2f5be070d454dbd3fc25d9529 (patch)
treea1154f235edaf30b3727f994302db34c4fc51c39 /ext
parent93d1a2e94cf27744b725dd4a90e3044aaffc3c4d (diff)
merge revision(s) ed8c21bbd5071b52d0d0612eadbdad8fe192e974:
Ensure symlinks to bundled gem with exts have parent dir When configuring with `--disable-rpath` and `--static-linked-ext` (e.g. building for WASI), `extmk.rb` doesn't build exts under bundled gems, and `.bundle/gems/#{gemname}-#{ver}` are not created due to no call of `extmake`. b2491783986084770f6f97552f27b868622730cf starts creating symlink at `.bundle/gems/#{gemname}-#{ver}/lib`, but the parent dir is not created, so configuration aginst debug and rbs gems were failed. --- ext/extmk.rb | 1 + 1 file changed, 1 insertion(+)
Diffstat (limited to 'ext')
-rwxr-xr-xext/extmk.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 764c25c838..e2196ebfb5 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -606,6 +606,7 @@ if @gemname
puts "using #{gemlib}"
else
begin
+ FileUtils.mkdir_p(File.dirname(gemlib))
File.symlink(relative_from(src_gemlib, ".."), gemlib)
puts "linked #{gemlib}"
rescue NotImplementedError, Errno::EPERM