Skip to content

Commit

Permalink
gpu-dawn: build.zig needs to reference thisDir for C file
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh authored and emidoots committed Mar 31, 2022
1 parent 853a9cd commit c0d884d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ fn buildLibMachDawnNative(b: *Builder, step: *std.build.LibExeObjStep, options:
}) catch unreachable;
}

lib.addCSourceFile("src/dawn/dawn_native_mach.cpp", cpp_flags.items);
lib.addCSourceFile(std.fs.path.join(b.allocator, &.{
thisDir(), "src/dawn/dawn_native_mach.cpp",
}) catch unreachable, cpp_flags.items);
return lib;
}

Expand Down

0 comments on commit c0d884d

Please sign in to comment.