File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/npm-packages/ruby-wasm-wasi/tools Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ package_dir="$(cd "$(dirname "$0")/.." && pwd)"
15
15
16
16
mkdir -p " $dist_dir "
17
17
18
- wasm-opt --strip-debug " $ruby_root /usr/local/bin/ruby" -o " $dist_dir /ruby.wasm"
18
+ " $WASMOPT " --strip-debug " $ruby_root /usr/local/bin/ruby" -o " $dist_dir /ruby.wasm"
19
19
20
20
# Build +stdlib versions (removing files that are not used in normal use cases)
21
21
@@ -24,7 +24,7 @@ cp -R "$ruby_root" "$workdir/ruby-root"
24
24
rm -rf $workdir /ruby-root/usr/local/include
25
25
rm -f $workdir /ruby-root/usr/local/lib/libruby-static.a
26
26
rm -f $workdir /ruby-root/usr/local/bin/ruby
27
- wasi-vfs pack " $dist_dir /ruby.wasm" --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby+stdlib.wasm"
28
- wasi-vfs pack " $ruby_root /usr/local/bin/ruby" --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby.debug+stdlib.wasm"
27
+ " $WASI_VFS_CLI " pack " $dist_dir /ruby.wasm" --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby+stdlib.wasm"
28
+ " $WASI_VFS_CLI " pack " $ruby_root /usr/local/bin/ruby" --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby.debug+stdlib.wasm"
29
29
30
30
cp $dist_dir /* .wasm " $package_dir /dist/"
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ namespace :npm do
22
22
desc "Build npm package #{ pkg [ :name ] } "
23
23
task pkg [ :name ] => [ "build:#{ pkg [ :build ] } " , wasi_vfs . cli_install_task ] do
24
24
sh "npm ci" , chdir : pkg_dir
25
- sh "#{ pkg_dir } /build-package.sh #{ base_dir } /rubies/#{ pkg [ :build ] } "
25
+ sh tools , "#{ pkg_dir } /build-package.sh #{ base_dir } /rubies/#{ pkg [ :build ] } "
26
26
sh "npm pack" , chdir : pkg_dir
27
27
end
28
28
You can’t perform that action at this time.
0 commit comments