git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Proposal: git-based dependency tracking build system

From
MMMatt McCutchen <hashproduct@verizon.net>
Date
Apr 26, 2006, 00:13 UTC
Message-ID
<1146010422.2075.15.camel@mattlaptop>
Dear git people,
I have been thinking for some time about how to write a foolproof
general-use build system that automatically tracks dependencies.  (Make
+ depcomp is decent as long as source files aren't added/removed or
generated often.  Cons is good but not general-purpose.)  I know there's
been some work on tracing the compiler to see which files it actually
opens.  Another possibility is to layer a FUSE filesystem over the build
tree and note which files in the virtual filesystem are opened; this has
the advantage of missing most of the boring files (e.g. shared libraries
that make up the compiler).

So I was thinking, why not write a build system that uses git's excellent hash-based object storage support to store the files in the virtual build tree? Hashing the files makes it easy to notice when a file is rewritten with the same contents, meaning files that depend on it don't actually have to be rebuilt. I also envision the build system automatically marking generated files as git-ignored.

Thoughts?
-- 
Matt McCutchen
hashproduct@verizon.net
http://hashproduct.metaesthetics.net/
Message 1 of 1 in “Proposal: git-based dependency tracking build system”
  1. Matt McCutchenApr 26, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.