Skip to content

Commit

Permalink
fix Linux build
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Aug 11, 2023
1 parent 77f085a commit 24a6186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub const Options = struct {
install_libs: bool = false,

/// The binary release version to use from https://github.com/hexops/mach-gpu-dawn/releases
binary_version: []const u8 = "release-5be6076",
binary_version: []const u8 = "release-5be6076",

/// Detects the default options to use for the given target.
pub fn detectDefaults(self: Options, target: std.Target) Options {
Expand Down Expand Up @@ -805,14 +805,14 @@ fn buildLibDawnNative(b: *Build, step: *std.build.CompileStep, options: Options)
"benchmark",
"mock",
"SpirvValidation.cpp",
"XlibXcbFunctions.cpp",
"X11Functions.cpp",
"dawn_proc.c",
} else &.{
"test",
"benchmark",
"mock",
"SpirvValidation.cpp",
"XlibXcbFunctions.cpp",
"X11Functions.cpp",
"dawn_proc.c",
},
});
Expand Down Expand Up @@ -863,7 +863,7 @@ fn buildLibDawnNative(b: *Build, step: *std.build.CompileStep, options: Options)
const tag = step.target_info.target.os.tag;
if (isLinuxDesktopLike(tag)) {
inline for ([_][]const u8{
"src/dawn/native/XlibXcbFunctions.cpp",
"src/dawn/native/X11Functions.cpp",
}) |path| {
const abs_path = sdkPath("/libs/dawn/" ++ path);
try cpp_sources.append(abs_path);
Expand Down

0 comments on commit 24a6186

Please sign in to comment.