mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 01:33:09 +00:00
start: remove riscv condition
This commit is contained in:
parent
9c7aade488
commit
2b8a71489a
@ -465,8 +465,6 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
|
|||||||
// to ask for more stack space.
|
// to ask for more stack space.
|
||||||
expandStackSize(phdrs);
|
expandStackSize(phdrs);
|
||||||
|
|
||||||
// Disabled with the riscv backend because it cannot handle this code yet.
|
|
||||||
if (builtin.zig_backend != .stage2_riscv64) {
|
|
||||||
const opt_init_array_start = @extern([*]*const fn () callconv(.C) void, .{
|
const opt_init_array_start = @extern([*]*const fn () callconv(.C) void, .{
|
||||||
.name = "__init_array_start",
|
.name = "__init_array_start",
|
||||||
.linkage = .weak,
|
.linkage = .weak,
|
||||||
@ -481,7 +479,6 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
|
|||||||
for (slice) |func| func();
|
for (slice) |func| func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
std.posix.exit(callMainWithArgs(argc, argv, envp));
|
std.posix.exit(callMainWithArgs(argc, argv, envp));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user