Zig Version
0.14.0-dev.2851+b074fb7dd
Steps to Reproduce and Observed Behavior
This also occurs in 0.13.0 I just noticed.
- create file
main.zig:
export fn func() u32 {
return 5;
}
- build with command:
zig build-exe --export=func -fno-entry -lc -target wasm32-wasi-musl main.zig
- I received the following output:
b22ac386e1/libc.a(/home/mike/.cache/zig/o/bdbc5e1f927e7d98a8e9ea2611c26b68/__main_void.o): undefined symbol: main
Expected Behavior
for an error about not including a pub fn main to surface instead of a linker error.
And it should just compile with -fno-entry passed
Zig Version
0.14.0-dev.2851+b074fb7dd
Steps to Reproduce and Observed Behavior
This also occurs in 0.13.0 I just noticed.
main.zig:Expected Behavior
for an error about not including a
pub fn mainto surface instead of a linker error.And it should just compile with
-fno-entrypassed