Merge pull request #79 from antlilja/shader-path

Fixed bug in shader output path
This commit is contained in:
Robin Voetter
2023-02-20 20:49:28 +01:00
committed by GitHub

View File

@@ -170,12 +170,9 @@ pub const ShaderCompileStep = struct {
var shaders_file_contents = std.ArrayList(u8).init(self.b.allocator); var shaders_file_contents = std.ArrayList(u8).init(self.b.allocator);
const shaders_out = shaders_file_contents.writer(); const shaders_out = shaders_file_contents.writer();
const shaders_dir = try self.b.build_root.join( const shaders_dir = try self.b.cache_root.join(
self.b.allocator,
&.{try self.b.cache_root.join(
self.b.allocator, self.b.allocator,
&.{cache_dir}, &.{cache_dir},
)},
); );
try cwd.makePath(shaders_dir); try cwd.makePath(shaders_dir);