fanquake
commented at 3:24 PM on July 23, 2025:
member
This picks up #22126. Previously, this was more complicated to do, as depends packages (upnp, natpmp) used the rules being disabled. Those packages have since been removed.
When there is no rule to build a target in the makefile, make looks for a builtin rule. When -r is specified make no longer performs this lookup.
E.g. the following in an excerpt from make -d output. Here, make looks for a rule to build all.
Considering target file 'all'.
File 'all' does not exist.
Looking for an implicit rule for 'all'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.o'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.c'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.cc'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.C'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.cpp'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.p'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.f'.
...
Many more lines like this are omitted.
Because this build system does not use make builtin rules or suffixes, there is no benefit in having builtin rules enabled.
There are 2 benefits in having builtin rules disabled.
Improves performance by eliminating redundant lookups.
Simplifies troubleshooting by reducing the output of make -d or make -p.
DrahtBot removed the label DrahtBot Guix build requested on Sep 6, 2025
fanquake force-pushed on Sep 16, 2025
fanquake force-pushed on Oct 10, 2025
fanquake force-pushed on Oct 30, 2025
hebasto approved
hebasto
commented at 2:35 PM on November 3, 2025:
member
ACK3651344fedfd75ea1fd178e53de2607a3bdfb558.
I was going to suggest:
* Using `--no-builtin-rules` rather than `-r` to be a little more self-documenting
...
But...
BSD Make supports -r, so that pretty much moots both points. Also, I'm pretty sure we require GNU Make anyway.
We do require GNU Make, so I also support using the long option names for better self-documentation.
depends: disable builtin rules and suffixes.
When there is no rule to build a target in the makefile, make looks
for a builtin rule.
When --no-builtin-rules is specified make no longer performs this lookup.
E.g. the following in an excerpt from make -d output.
Here, make looks for a rule to build 'all'.
Considering target file 'all'.
File 'all' does not exist.
Looking for an implicit rule for 'all'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.o'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.c'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.cc'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.C'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.cpp'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.p'.
Trying pattern rule with stem 'all'.
Trying implicit prerequisite 'all.f'.
...
Many more lines like this are omitted.
Because this build system does not use make builtin rules or suffixes,
there is no benefit in having builtin rules enabled.
There are 2 benefits in having builtin rules disabled.
1. Improves performance by eliminating redundant lookups.
2. Simplifies troubleshooting by reducing the output of make -d or
make -p.
8b5a28fa78
depends: disable builtin variables52b1595850
fanquake force-pushed on Nov 3, 2025
fanquake
commented at 3:29 PM on November 3, 2025:
member
Pushed up the long form for both options.
hebasto approved
hebasto
commented at 3:32 PM on November 3, 2025:
member
re-ACK52b1595850f63b65701a405d31045faa59231c75.
bitcoin deleted a comment on Nov 3, 2025
fanquake
commented at 5:27 PM on November 3, 2025:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-11-24 09:51 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me