mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
initialize std.os.argv in stage1 compiler. it is needed for selfExePath under OpenBSD
This commit is contained in:
parent
a6dc2b7fcc
commit
161eb4a000
@ -25,7 +25,9 @@ comptime {
|
||||
pub const log = stage2.log;
|
||||
pub const log_level = stage2.log_level;
|
||||
|
||||
pub export fn main(argc: c_int, argv: [*]const [*:0]const u8) c_int {
|
||||
pub export fn main(argc: c_int, argv: [*][*:0]u8) c_int {
|
||||
std.os.argv = argv[0.. @intCast(usize, argc)];
|
||||
|
||||
std.debug.maybeEnableSegfaultHandler();
|
||||
|
||||
zig_stage1_os_init();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user