Skip to content

Commit eb456e6

Browse files
Skip linking libwasi_vfs.a if the component model is enabled
We should use wasi-virt instead of wasi_vfs in the component model.
1 parent 0467534 commit eb456e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ruby_wasm/packager/core.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,10 @@ def target
274274

275275
def derive_build
276276
return @build if @build
277-
__skip__ =
278-
build ||= RubyWasm::Build.new(name, **@packager.full_build_options, target: target)
277+
__skip__ = build ||= RubyWasm::Build.new(
278+
name, **@packager.full_build_options, target: target,
279+
wasi_vfs: @packager.features.support_component_model? ? nil : :default
280+
)
279281
build.crossruby.user_exts = user_exts(build)
280282
# Emscripten uses --global-base=1024 by default, but it conflicts with
281283
# --stack-first and -z stack-size since global-base 1024 is smaller than

0 commit comments

Comments
 (0)