| ... | @@ -283,11 +283,11 @@ pub fn main(init: process.Init.Minimal) !void { | ... | @@ -283,11 +283,11 @@ pub fn main(init: process.Init.Minimal) !void { |
| 283 | cache_poison = .poisoned; | 283 | cache_poison = .poisoned; |
| 284 | configure_argv.appendAssumeCapacity("--cache-poison=poisoned"); | 284 | configure_argv.appendAssumeCapacity("--cache-poison=poisoned"); |
| 285 | } else if (mem.cutPrefix(u8, arg, "--cache-poison=")) |rest| { | 285 | } else if (mem.cutPrefix(u8, arg, "--cache-poison=")) |rest| { |
| 286 | // Allow the configurer process to report parse failure. | 286 | // We have to report parse failure here otherwise we would |
| 287 | if (stringToEnum(std.Build.Graph.CachePoison, rest)) |poison| { | 287 | // potentially get false positive cache hits for misspellings. |
| 288 | cache_poison = poison; | 288 | cache_poison = stringToEnum(std.Build.Graph.CachePoison, rest) orelse |
| 289 | } | 289 | fatalWithHint("expected --cache-poison=[pure|poisoned|disallowed|ignored]; found: {s}", .{arg}); |
| 290 | configure_argv.appendAssumeCapacity(arg); | 290 | if (cache_poison != .pure) configure_argv.appendAssumeCapacity(arg); |
| 291 | } else if (mem.eql(u8, arg, "--verbose")) { | 291 | } else if (mem.eql(u8, arg, "--verbose")) { |
| 292 | // Intentionally is added both to make and configure but | 292 | // Intentionally is added both to make and configure but |
| 293 | // does not go into the cache hash. | 293 | // does not go into the cache hash. |