summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authorYuta Saito <[email protected]>2022-07-14 17:32:29 +0000
committerNobuyoshi Nakada <[email protected]>2022-07-15 13:14:31 +0900
commited8c21bbd5071b52d0d0612eadbdad8fe192e974 ()
treecfbbb500456c255400818f90ed9cb64273ff8b1f /ext/extmk.rb
parent439d31bc777a6f9c9354dbe9a82495a9b4fa04ae (diff)
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.
Notes: Merged: https://.com/ruby/ruby/pull/6136
-rwxr-xr-xext/extmk.rb1
1 files changed, 1 insertions, 0 deletions
@@ -603,6 +603,7 @@ if @gemname
puts "using #{gemlib}"
else
begin
File.symlink(relative_from(src_gemlib, ".."), gemlib)
puts "linked #{gemlib}"
rescue NotImplementedError, Errno::EPERM