mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
standalone: support relative cache path
This commit is contained in:
parent
6bc0cef607
commit
d9b00ee4ba
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ pub fn build(b: *std.Build) void {
|
||||||
const abs_path = setup_abspath: {
|
const abs_path = setup_abspath: {
|
||||||
const temp_dir = b.makeTempPath();
|
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();
|
defer dir.close();
|
||||||
|
|
||||||
var file = dir.createFile("foo.txt", .{}) catch @panic("failed to create file");
|
var file = dir.createFile("foo.txt", .{}) catch @panic("failed to create file");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue