Skip to content

Commit d2fab66

Browse files
committed
fix: conditionally compile _start for WASM targets only
1 parent ea5c7e0 commit d2fab66

File tree

1 file changed

+2
-1
lines changed
  • tools/checksum_updater_wasm/src

1 file changed

+2
-1
lines changed

tools/checksum_updater_wasm/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ enum Commands {
9898
},
9999
}
100100

101-
// WebAssembly component entry point
101+
// WebAssembly component entry point (only for WASM targets)
102+
#[cfg(target_arch = "wasm32")]
102103
#[no_mangle]
103104
pub extern "C" fn _start() {
104105
match run_component() {

0 commit comments

Comments
 (0)