Selaa lähdekoodia

build.zig: Clean up my mess (#4387)

pull/4397/head
Sage Hane 11 kuukautta sitten
committed by GitHub
vanhempi
commit
dc5e6e0ad0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      src/build.zig

+ 1
- 1
src/build.zig Näytä tiedosto

@ -68,7 +68,7 @@ fn srcDir(b: *std.Build) []const u8 {
@compileError("Please take a look at this function again");
}
const src_file = std.fs.path.relative(b.allocator, @src().file, ".") catch @panic("OOM");
const src_file = std.fs.path.relative(b.allocator, ".", @src().file) catch @panic("OOM");
return std.fs.path.dirname(src_file) orelse ".";
}

Ladataan…
Peruuta
Tallenna