zig
zig copied to clipboard
Allow c-style main functions
Fixes #12569
Adds support for main functions with signatures
pub fn main() c_int
pub fn main(argc: c_int, argv: [*:null]?[*:0]c_char) c_int
pub fn main(argc: c_int, argv: [*:null]?[*:0]c_char, envp: [*:null]?[*:0]c_char) c_int
I am unsure why the CI is failing
This will need a rebase.
I misunderstood the issue, this should only work when linking against libc.