Skip to content

Commit afccbef

Browse files
Disable wasi-vfs for dynamic linking targets
We are going to use wasi-virt for componentized builds. But we cannot integrate it as extension library very soon because it still depends clang cross-compilation through wasm-opt dependency. Also we would like to have a flexibility to prototype.
1 parent b2bf55a commit afccbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_wasm/packager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def package(executor, dest_dir, options)
3636
fs.remove_non_runtime_files(executor)
3737
fs.remove_stdlib(executor) unless options[:stdlib]
3838

39-
if full_build_options[:target] == "wasm32-unknown-wasip1"
39+
if full_build_options[:target] == "wasm32-unknown-wasip1" && !features.support_dynamic_linking?
4040
# wasi-vfs supports only WASI target
4141
wasi_vfs = RubyWasmExt::WasiVfs.new
4242
wasi_vfs.map_dir("/bundle", fs.bundle_dir)

0 commit comments

Comments
 (0)