Skip to content

Commit 040f4c0

Browse files
fix wasm-opt path when installed
1 parent 716980d commit 040f4c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby_wasm/build_system/toolchain.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def initialize(
7676
end
7777
@binaryen_path = File.join(build_dir, "toolchain", "binaryen")
7878
@binaryen_version = binaryen_version
79+
@wasm_opt_path = File.join(@binaryen_path, "bin", "wasm-opt")
7980
end
8081

8182
@tools = {
@@ -97,7 +98,7 @@ def find_tool(name)
9798
end
9899

99100
def wasm_opt
100-
File.join(@binaryen_path, "bin", "wasm-opt")
101+
@wasm_opt_path
101102
end
102103

103104
def define_task

0 commit comments

Comments
 (0)