}
}
- if (str_startswith(args->argv[i], "--specs=") &&
- stat(args->argv[i] + 8, &st) == 0) {
- /* If given a explicit specs file, then hash that file,
+ if (str_startswith(args->argv[i], "--specs=")
+ && stat(args->argv[i] + 8, &st) == 0) {
+ /* If given an explicit specs file, then hash that file,
but don't include the path to it in the hash. */
hash_delimiter(hash, "specs");
- if (!hash_file(hash, args->argv[i] + 8)) {
- failed();
- }
+ hash_compiler(hash, &st, args->argv[i] + 8, false);
continue;
}