forked from mirror/vulkan-zig
Merge pull request #79 from antlilja/shader-path
Fixed bug in shader output path
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user