From 27c38931db4fe004abaf3562b1ee374d89da0185 Mon Sep 17 00:00:00 2001 From: antlilja Date: Mon, 20 Feb 2023 15:14:15 +0100 Subject: [PATCH] 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. --- generator/build_integration.zig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/generator/build_integration.zig b/generator/build_integration.zig index 8a9c44c..87264f3 100644 --- a/generator/build_integration.zig +++ b/generator/build_integration.zig @@ -170,12 +170,9 @@ pub const ShaderCompileStep = struct { var shaders_file_contents = std.ArrayList(u8).init(self.b.allocator); 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, - &.{cache_dir}, - )}, + &.{cache_dir}, ); try cwd.makePath(shaders_dir);