We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4daacf commit 26b798aCopy full SHA for 26b798a
lib/ruby_wasm/build/product/wasi_vfs.rb
@@ -7,10 +7,11 @@ class WasiVfsProduct < BuildProduct
7
def initialize(build_dir)
8
@build_dir = build_dir
9
@need_fetch_lib = ENV["LIB_WASI_VFS_A"].nil?
10
+ installed_cli_path =
11
+ ENV["WASI_VFS_CLI"] || Toolchain.find_path("wasi-vfs")
12
+ @need_fetch_cli = installed_cli_path.nil?
13
@cli_path =
- ENV["WASI_VFS_CLI"] || Toolchain.find_path("wasi-vfs") ||
- File.join(cli_product_build_dir, "wasi-vfs")
- @need_fetch_cli = @cli_path.nil?
14
+ installed_cli_path || File.join(cli_product_build_dir, "wasi-vfs")
15
end
16
17
def lib_product_build_dir
0 commit comments