-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Milestone
Description
Steps to Reproduce
$ echo "int main() { }" > example.c
$ zig cc -Wp,-MD,deps.d example.c
example.c:1:1: error: unable to build C object: FileNotFoundError goes away if no deps filename is given (i.e. -Wp,-MD without the deps.d).
Tracked the error to this line:
Line 579 in ed5a5e2
| const dep_file_contents = try dir.readFileAlloc(self.cache.gpa, dep_file_basename, manifest_file_size_max); |
zig tries to open the deps file from the cache but it's not there because it was redirected to another filename on the command-line.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature