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

Re: [PATCH] Makefile: add option to disable automatic dependency generation

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 18, 2011, 06:21 UTC
Message-ID
<20111118062150.GC25145@elie.hsd1.il.comcast.net>
In-Reply-To
<7vty62klg9.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Eek. At least at the end user UI level, couldn't we do this as a tristate?
> E.g. "YesPlease" (or anything that begins with Y if you are ambitious) to
> explicitly enable, empty (or "auto") to autodetect, and anything else to
> decline?
Ah, I didn't mind the UI so much.  Handling
	COMPUTE_HEADER_DEPENDENCIES_FORCE = (yes | no | auto)

should be doable. I'd suggest making any other value error out, so typos don't result in mysterious behavior.

> Even better, couldn't we either (1) rearrange .dep/ files somehow, so that
> compiler difference does not matter

Yes, I'm working on an incantation all the compilers like (it shouldn't be hard --- adding an -MQ option should be enough, but I want to understand the bug first). But even with such a fix, I think it will be important to have a way to turn the feature off. When someone using a compiler without -MMD support reports a bug, wouldn't it be nice to be able to reproduce it?

Previous: Junio C HamanoNext: Jonathan Nieder
Message 14 of 19 in “A flaw in dep generation with gcc -MMD?”
  1. Nguyen Thai Ngoc DuyNov 18, 2011
  2. Jonathan NiederNov 18, 2011
  3. Nguyen Thai Ngoc DuyNov 18, 2011
  4. Miles BaderNov 18, 2011
  5. Nguyen Thai Ngoc DuyNov 18, 2011
  6. Nguyen Thai Ngoc DuyNov 18, 2011
  7. Samuel BronsonNov 18, 2011
  8. Jonathan NiederNov 18, 2011
  9. Andreas SchwabNov 18, 2011
  10. Nguyen Thai Ngoc DuyNov 19, 2011
  11. Makefile: add option to disable automatic dependency generationJonathan Nieder, Nov 18, 2011
  12. Jonathan NiederNov 18, 2011
  13. Junio C HamanoNov 18, 2011
  14. Jonathan NiederNov 18, 2011
  15. Makefile: add option to disable automatic dependency generationJonathan Nieder, Nov 18, 2011
  16. Makefile: add missing header file dependenciesJonathan Nieder, Nov 18, 2011
  17. Nguyen Thai Ngoc DuyNov 18, 2011
  18. Makefile: explicitly set target name for autogenerated dependenciesJonathan Nieder, Nov 18, 2011
  19. Nguyen Thai Ngoc DuyNov 19, 2011

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.