pub fn withoutLocalCache(dirs: Directories) Directories dirs: Directories1382
1383
1384
1385
1386
1387
1388
1389
1390 pub fn withoutLocalCache(dirs: Directories) Directories {
return .{
.cwd = dirs.cwd,
.zig_lib = dirs.zig_lib,
.global_cache = dirs.global_cache,
.local_cache = dirs.global_cache,
.build_root = dirs.build_root,
};
}
Returns a
Directorieswherelocal_cacheis replaced withglobal_cache, intended for use by sub-compilations (e.g. compiler_rt). Do notdeinitthe returnedDirectories; it shares handles withdirs.