~gpanders/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH zet] Link to libc

Details
Message ID
<20200702032903.2266992-1-dani@bourbaki.xyz>
DKIM signature
missing
Download raw message
Patch: +1 -0
From: Dani Pozo <danipozo@correo.ugr.es>

Apparently, Zig fails to detect the dependency on libc
if not told explicitly.

---
 build.zig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build.zig b/build.zig
index 330c68f..1e6c17f 100644
--- a/build.zig
@@ -16,6 +16,7 @@ pub fn build(b: *Builder) void {
    const exe = b.addExecutable("zet", "src/main.zig");
    exe.setTarget(target);
    exe.setBuildMode(mode);
    exe.linkSystemLibrary("c");
    exe.strip = mode == Mode.ReleaseSmall;
    exe.install();

-- 
2.27.0
Details
Message ID
<e0cf04c05067e1586d25206ed12ebf84@gpanders.com>
In-Reply-To
<20200702032903.2266992-1-dani@bourbaki.xyz> (view parent)
DKIM signature
missing
Download raw message
Thanks!
Review patch Export thread (mbox)