marler8997 / ziglibc

193 stars 19 forks source link

Updates ziglibc to utilize the package manager. #12

Closed ikskuh closed 1 year ago

ikskuh commented 1 year ago

This allows ziglibc to be used like this:

const cguana_dep = b.anonymousDependency("vendor/ziglibc", @import("vendor/ziglibc/build.zig"), .{
    .target = machine_spec.platform.target,
    .link = .static,
    .start = .none,
    .trace = false,
    .optimize = .ReleaseSafe,
});

const ashet_libc = cguana_dep.artifact("cguana");
ikskuh commented 1 year ago

I also added a prototypical support for freestanding without splitting the files up, right now only for cstd.zig