Skip to content

Commit 2e5858e

Browse files
[wasm-pic] Clean before building extension libraries
This is a workaround for the issue that `RUBYARCHDIR` is not re-mkdir'd when the installation directory is re-created and the extension library is re-built.
1 parent 25c1d3b commit 2e5858e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ruby_wasm/build/product/crossruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def build(executor, crossruby)
4545
executor.mkdir_p objdir
4646
do_extconf executor, crossruby
4747

48+
executor.system "make", "-C", objdir, *make_args(crossruby), "clean"
4849
build_target = crossruby.target.pic? ? "install-so" : "static"
4950
executor.system "make",
5051
"-j#{executor.process_count}",

0 commit comments

Comments
 (0)