-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
the first line of .d files is ambiguous due to clang's output format #2046
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.upstreamAn issue with a third party project that Zig uses.An issue with a third party project that Zig uses.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.upstreamAn issue with a third party project that Zig uses.An issue with a third party project that Zig uses.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
zig/src/cache_hash.cpp
Lines 431 to 432 in fec4555
But here's an example file:
In this example there are 2 files on the first line. The dep file parsing probably needs to gain a real tokenizer, and support any number of items on any line. For example it also doesn't look for multiple files on the same line if there are double quotes.
I also haven't managed to find documentation for this file format. It would be nice to find a reference. Supposedly it's "NMake or Jom" format.
Finally, audit the places that call
cache_add_dep_fileand make sure they don't redundantly add the main source file, since it's contained in the dep file as well.