~kameliya/zig-rvefi-link-error

zig-rvefi-link-error/build.zig -rw-r--r-- 355 bytes
3f32891dAsherah Connor init 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const std = @import("std");

pub fn build(b: *std.build.Builder) void {
    const target = std.zig.CrossTarget{
        .cpu_arch = .riscv64,
        .os_tag = .uefi,
    };

    const mode = b.standardReleaseOptions();

    const exe = b.addExecutable("rvefi", "src/main.zig");
    exe.setTarget(target);
    exe.setBuildMode(mode);
    exe.install();
}