std.Build.Step.TranslateC: forward --cache-dir and --global-cache-dir flags

This commit is contained in:
AdamGoertz 2025-08-25 23:54:00 -04:00 committed by GitHub
parent ade570f0d5
commit 99b2b61516
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,6 +163,12 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
try argv_list.append("-fno-clang");
}
try argv_list.append("--cache-dir");
try argv_list.append(b.cache_root.path orelse ".");
try argv_list.append("--global-cache-dir");
try argv_list.append(b.graph.global_cache_root.path orelse ".");
try argv_list.append("--listen=-");
if (!translate_c.target.query.isNative()) {