[build] Fix handling of cog header deps

The last commit was a bandaid, but this needed a real fix. Now we create
a .parse_deps.phony file in every module build dir that implicitly
depends on that module's dependencies' .parse_deps.phony files, as well
as order-only depends on any cog-parsed output for that module. This
causes the cog files to get generated first if they never have been, but
still leaves real header dependency tracking to clang's depfile
generation.
This commit is contained in:
Justin C. Miller
2022-01-08 15:34:47 -08:00
parent 488f2df869
commit 2ff7a0864b
5 changed files with 33 additions and 44 deletions

View File

@@ -73,3 +73,6 @@ rule strip
objcopy --only-keep-debug $out $debug; $
strip -g $out; $
objcopy --add-gnu-debuglink=$debug $out
rule touch
command = touch $out