File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/ruby_wasm/build_system/product Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ def with_zlib(zlib)
167
167
168
168
def with_wasi_vfs ( wasi_vfs )
169
169
@wasi_vfs = wasi_vfs
170
- @dep_tasks << wasi_vfs . install_task
170
+ install_task = wasi_vfs . install_task
171
+ @dep_tasks << install_task if install_task
171
172
end
172
173
173
174
def dest_dir
Original file line number Diff line number Diff line change @@ -20,14 +20,15 @@ def lib_product_build_dir
20
20
end
21
21
22
22
def lib_wasi_vfs_a
23
- File . join ( lib_product_build_dir , "libwasi_vfs.a" )
23
+ ENV [ "LIB_WASI_VFS_A" ] || File . join ( lib_product_build_dir , "libwasi_vfs.a" )
24
24
end
25
25
26
26
def name
27
27
lib_product_build_dir
28
28
end
29
29
30
30
def define_task
31
+ return if ENV [ "LIB_WASI_VFS_A" ]
31
32
@install_task =
32
33
file ( lib_wasi_vfs_a ) do
33
34
require "tmpdir"
You can’t perform that action at this time.
0 commit comments