Commit 3f2d1b17fc

Andrew Kelley <andrew@ziglang.org>
2024-07-29 20:38:11
disable the new code for self-hosted riscv backend
1 parent 728024f
Changed files (1)
lib
lib/std/start.zig
@@ -436,7 +436,8 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
         // to ask for more stack space.
         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, .{
                 .name = "__init_array_start",
                 .linkage = .weak,