Skip to content

Commit

Permalink
standalone: support relative cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobly0 authored and andrewrk committed May 9, 2024
1 parent 6bc0cef commit d9b00ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/standalone/dirname/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn build(b: *std.Build) void {
const abs_path = setup_abspath: {
const temp_dir = b.makeTempPath();

var dir = std.fs.openDirAbsolute(temp_dir, .{}) catch @panic("failed to open temp dir");
var dir = std.fs.cwd().openDir(temp_dir, .{}) catch @panic("failed to open temp dir");
defer dir.close();

var file = dir.createFile("foo.txt", .{}) catch @panic("failed to create file");
Expand Down

0 comments on commit d9b00ee

Please sign in to comment.