~kameliya/zig-rvefi-link-error

3f32891d9aa6b6f30cb756b3decbe36b8b641747 — Asherah Connor 6 months ago master
init
3 files changed, 17 insertions(+), 0 deletions(-)

A .gitignore
A build.zig
A src/main.zig
A  => .gitignore +1 -0
@@ 1,1 @@
zig-cache

A  => build.zig +15 -0
@@ 1,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();
}

A  => src/main.zig +1 -0
@@ 1,1 @@
pub fn main() void {}