Skip to content

Commit 2c1b579

Browse files
authored
feat: add empty.s to generated directories (#1560)
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent a4170e0 commit 2c1b579

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/go/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,14 @@ import (
956956
.as_bytes(),
957957
),
958958
);
959+
960+
files.push(
961+
&format!("{prefix}{name}/empty.s"),
962+
r#"// This file exists for testing this package without WebAssembly,
963+
// allowing empty function bodies with a //go:wasmimport directive.
964+
// See https://pkg.go.dev/cmd/compile for more information."#
965+
.as_bytes(),
966+
);
959967
}
960968
}
961969

0 commit comments

Comments
 (0)