Skip to content

Commit 012cb4b

Browse files
install ext/*/lib/*.rb via make static
1 parent 5f448de commit 012cb4b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/ruby_wasm/build_system/product/crossruby.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def define_task(crossruby)
2525
make_args << "AR=#{@toolchain.ar}"
2626
make_args << "RANLIB=#{@toolchain.ranlib}"
2727

28+
make_args << "DESTDIR=#{crossruby.dest_dir}"
29+
2830
lib = @name
2931
source = crossruby.source
3032
objdir = product_build_dir crossruby
@@ -125,15 +127,6 @@ def define_task
125127
cp_r "#{dest_dir}-install", dest_dir
126128
ruby_api_version =
127129
`#{baseruby_path} -e 'print RbConfig::CONFIG["ruby_version"]'`
128-
# TODO: move copying logic to ext product
129-
@user_exts.each do |ext|
130-
ext_lib = File.join(ext.srcdir, "lib")
131-
next unless File.exist?(ext_lib)
132-
cp_r(
133-
File.join(ext_lib, "."),
134-
File.join(dest_dir, "usr/local/lib/ruby/#{ruby_api_version}")
135-
)
136-
end
137130
sh "tar cfz #{artifact} -C rubies #{name}"
138131
end
139132
end

0 commit comments

Comments
 (0)