all: fix pointless discards; typo; fix libmach compilation on Linux (#541)

This commit is contained in:
praschke 2022-09-15 14:41:05 +00:00 committed by GitHub
parent 38c4fc5b01
commit b0cd4ec1a0
Failed to generate hash of commit
4 changed files with 5 additions and 3 deletions

View file

@ -165,6 +165,10 @@ pub fn build(b: *std.build.Builder) void {
lib.addPackage(gpu.pkg);
lib.addPackage(glfw.pkg);
lib.addPackage(sysaudio.pkg);
if (target.toTarget().os.tag == .linux) {
// TODO: add gamemode.pkg instead of using addPackagePath
lib.addPackagePath("gamemode", (comptime thisDir()) ++ "/libs/gamemode/gamemode.zig");
}
glfw.link(b, lib, options.glfw_options);
gpu.link(b, lib, options.gpuOptions());
lib.setOutputDir("./libmach/build");