| ... | @@ -939,6 +939,20 @@ pub fn main(init: process.Init.Minimal) !void { | ... | @@ -939,6 +939,20 @@ pub fn main(init: process.Init.Minimal) !void { |
| 939 | const compile_prog_node = main_progress_node.start("Compile Configure Script", 0); | 939 | const compile_prog_node = main_progress_node.start("Compile Configure Script", 0); |
| 940 | defer compile_prog_node.end(); | 940 | defer compile_prog_node.end(); |
| 941 | | 941 | |
| | 942 | switch (cache_poison) { |
| | 943 | .pure, .disallowed, .ignored => if (try config_man.hit()) { |
| | 944 | const digest = config_man.final(); |
| | 945 | break :cp .{ |
| | 946 | .{ |
| | 947 | .root_dir = graph.local_cache_root, |
| | 948 | .sub_path = try allocPrint(arena, "c/{s}", .{&digest}), |
| | 949 | }, |
| | 950 | false, |
| | 951 | }; |
| | 952 | }, |
| | 953 | .poisoned => {}, // Don't bother checking for cache hit. |
| | 954 | } |
| | 955 | |
| 942 | const configure_exe_path: Path = if (std.zig.buildExeSubprocess(gpa, io, .{ | 956 | const configure_exe_path: Path = if (std.zig.buildExeSubprocess(gpa, io, .{ |
| 943 | .argv = build_configurer_argv.items, | 957 | .argv = build_configurer_argv.items, |
| 944 | .cache_root = graph.local_cache_root, | 958 | .cache_root = graph.local_cache_root, |
| ... | @@ -957,20 +971,6 @@ pub fn main(init: process.Init.Minimal) !void { | ... | @@ -957,20 +971,6 @@ pub fn main(init: process.Init.Minimal) !void { |
| 957 | defer gpa.free(configure_exe_path.sub_path); | 971 | defer gpa.free(configure_exe_path.sub_path); |
| 958 | | 972 | |
| 959 | configure_argv.items[0] = try configure_exe_path.toString(arena); | 973 | configure_argv.items[0] = try configure_exe_path.toString(arena); |
| 960 | | | |
| 961 | switch (cache_poison) { | | |
| 962 | .pure, .disallowed, .ignored => if (try config_man.hit()) { | | |
| 963 | const digest = config_man.final(); | | |
| 964 | break :cp .{ | | |
| 965 | .{ | | |
| 966 | .root_dir = graph.local_cache_root, | | |
| 967 | .sub_path = try allocPrint(arena, "c/{s}", .{&digest}), | | |
| 968 | }, | | |
| 969 | false, | | |
| 970 | }; | | |
| 971 | }, | | |
| 972 | .poisoned => {}, // Don't bother checking for cache hit. | | |
| 973 | } | | |
| 974 | } | 974 | } |
| 975 | | 975 | |
| 976 | if (!process.can_spawn) { | 976 | if (!process.can_spawn) { |