build: update build.zig
This commit is contained in:
12
build.zig
12
build.zig
@@ -25,13 +25,11 @@ pub fn build(b: *std.Build) void {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (target.result.os.tag == .macos) {
|
if (target.result.os.tag == .macos) {
|
||||||
exe.linkFramework("CoreFoundation");
|
exe.root_module.linkFramework("CoreFoundation", .{ .needed = true });
|
||||||
exe.linkFramework("IOKit");
|
exe.root_module.linkFramework("IOKit", .{ .needed = true });
|
||||||
}
|
} else if (target.result.os.tag == .linux) {
|
||||||
|
exe.root_module.link_libc = true;
|
||||||
if (target.result.os.tag == .linux) {
|
exe.root_module.linkSystemLibrary("pci", .{ .needed = true });
|
||||||
exe.linkLibC();
|
|
||||||
exe.linkSystemLibrary("pci");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This declares intent for the executable to be installed into the
|
// This declares intent for the executable to be installed into the
|
||||||
|
|||||||
Reference in New Issue
Block a user