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 Alex Rønne Petersen
parent 628357eeb6
commit e323dbfd15
No known key found for this signature in database

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()) {