mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
Module: name builtin module root directory correctly
37a9a4e accidentally turned paths `b/[hash]/` into `b[hash]/` in the
global cache. This doesn't technically break anything, but it pollutes
the global cache directory. Sorry about that one!
This commit is contained in:
parent
3416452d56
commit
a5861fcddd
1 changed files with 1 additions and 1 deletions
|
|
@ -432,7 +432,7 @@ pub fn createLimited(gpa: Allocator, options: LimitedOptions) Allocator.Error!*P
|
|||
|
||||
/// Does not ensure that the module's root directory exists on-disk; see `Builtin.updateFileOnDisk` for that task.
|
||||
pub fn createBuiltin(arena: Allocator, opts: Builtin, dirs: Compilation.Directories) Allocator.Error!*Module {
|
||||
const sub_path = "b" ++ Cache.binToHex(opts.hash());
|
||||
const sub_path = "b" ++ std.fs.path.sep_str ++ Cache.binToHex(opts.hash());
|
||||
const new = try arena.create(Module);
|
||||
new.* = .{
|
||||
.root = try .fromRoot(arena, dirs, .global_cache, sub_path),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue