Fixed bug in shader output path

The build root and cache root paths were being concatanated which
resulted in the wrong path being calculated for the shaders.
This commit is contained in:
antlilja
2023-02-20 15:14:15 +01:00
parent ac035d5ebe
commit 27c38931db

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, self.b.allocator,
&.{try self.b.cache_root.join( &.{cache_dir},
self.b.allocator,
&.{cache_dir},
)},
); );
try cwd.makePath(shaders_dir); try cwd.makePath(shaders_dir);