Link libc for window - Window and MacOS to be tested
This commit is contained in:
parent
43a9f54f49
commit
58a07a84d0
@ -200,7 +200,10 @@ zig build bench_cp
|
||||
|
||||
## System Requirements
|
||||
|
||||
Because this library binds to native system graphics APIs via `wgpu-native`, you must ensure the appropriate development headers and libraries are available on your system before compiling.
|
||||
Because this library binds to native system graphics APIs via `wgpu-native`,
|
||||
you must ensure the appropriate development headers and libraries are available on your system before compiling.
|
||||
|
||||
It work both for x86_64 and aarch64 on all platforms.
|
||||
|
||||
### Linux (Vulkan)
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ pub fn build(b: *std.Build) !void {
|
||||
mod.linkSystemLibrary("d3d12", .{});
|
||||
mod.linkSystemLibrary("dxgi", .{});
|
||||
mod.linkSystemLibrary("user32", .{});
|
||||
mod.link_libc = true;
|
||||
} else {
|
||||
mod.linkSystemLibrary("vulkan", .{});
|
||||
mod.linkSystemLibrary("gcc_s", .{});
|
||||
@ -59,6 +60,11 @@ pub fn build(b: *std.Build) !void {
|
||||
});
|
||||
exe.root_module.addImport("gpu", mod);
|
||||
|
||||
if (t.os.tag == .windows) {
|
||||
exe.bundle_compiler_rt = false;
|
||||
exe.bundle_ubsan_rt = false;
|
||||
}
|
||||
|
||||
b.installArtifact(exe);
|
||||
|
||||
const run_step = b.step(entry.name[0 .. entry.name.len - 4], try std.fmt.bufPrint(&buf, "Run {s} demo", .{entry.name}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user