From 27355fa3c58834fa05f5703fce4a7be56149f7c9 Mon Sep 17 00:00:00 2001 From: stephenduong1004 Date: Fri, 10 Jul 2026 16:34:10 -0400 Subject: [PATCH 1/2] Update building.py --- tools/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/building.py b/tools/building.py index 328af4bfcf1c8..3e84e7da48ec2 100644 --- a/tools/building.py +++ b/tools/building.py @@ -1291,9 +1291,9 @@ def run_wasm_opt(infile, outfile=None, args=[], **kwargs): # noqa def run_wasm_bindgen(infile): bindgen_out_dir = os.path.join(get_emscripten_temp_dir(), 'bindgen_out') - wasm_bindgen_bin = shutil.which('wasm-bindgen') + wasm_bindgen_bin = shared.WASM_BINDGEN if not wasm_bindgen_bin: - exit_with_error('wasm-bindgen executable not found in $PATH') + exit_with_error('wasm-bindgen executable not found') cmd = [ wasm_bindgen_bin, infile, From 2405e19083ad60bb89660aac41a318f6f3877dec Mon Sep 17 00:00:00 2001 From: stephenduong1004 Date: Fri, 10 Jul 2026 17:11:26 -0400 Subject: [PATCH 2/2] Update building.py --- tools/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/building.py b/tools/building.py index 3e84e7da48ec2..e8f7ebf0f5fb7 100644 --- a/tools/building.py +++ b/tools/building.py @@ -1291,9 +1291,9 @@ def run_wasm_opt(infile, outfile=None, args=[], **kwargs): # noqa def run_wasm_bindgen(infile): bindgen_out_dir = os.path.join(get_emscripten_temp_dir(), 'bindgen_out') - wasm_bindgen_bin = shared.WASM_BINDGEN + wasm_bindgen_bin = shutil.which('wasm-bindgen') or shutil.which('wasm_bindgen') if not wasm_bindgen_bin: - exit_with_error('wasm-bindgen executable not found') + exit_with_error('wasm-bindgen executable not found in $PATH') cmd = [ wasm_bindgen_bin, infile,