-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: Add variable printing target to Makefiles #17087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Add variable printing target to Makefiles #17087
Conversation
dongcarl
commented
Oct 9, 2019
I kept finding myself needing these to debug our build system, since they are innocuous and are very helpful they probably belong in the codebase. Source: John Graham-Cumming https://www.cmcrossroads.com/article/printing-value-makefile-variable
The whole OP seems like a block of code ;) |
How else would I get people to recognize that I follow line length limits in my commit messages! 😁 |
I read those as a quote and it takes me a minute to figure out who is meant with |
ACK 181989f
Show signature and timestampSignature:
$ git checkout 181989f~1 && make print-top_srcdir $ git checkout 181989f~0 && make print-top_srcdir
Timestamp of file with hash |
ACK, nice one! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 181989f - concise amount of useful code. Tested on macOS. Did not visit the link.
$ make print-BITCOIND_BIN
BITCOIND_BIN = ./src/bitcoind
$ make -C depends/ print-SOURCES_PATH
SOURCES_PATH = /Users/michael/github/bitcoin/depends/sources
181989f build: Add variable printing target to Makefiles (Carl Dong) Pull request description: ``` I kept finding myself needing these to debug our build system, since they are innocuous and are very helpful they probably belong in the codebase. Source: John Graham-Cumming https://www.cmcrossroads.com/article/printing-value-makefile-variable ``` ACKs for top commit: MarcoFalke: ACK 181989f fanquake: ACK 181989f - concise amount of useful code. Tested on macOS. Did not visit the link. Tree-SHA512: 2139621e68a499c7347663ca9dc04e166ea6280e05986c27858df0156016ef2f9461262464d70c601419384f43a4ae3bcc67dfc0a05dbeef64f08386ab429cd8
Summary: ``` I kept finding myself needing these to debug our build system, since they are innocuous and are very helpful they probably belong in the codebase. ``` Backport of core [[bitcoin/bitcoin#17087 | PR17087]]. Can be useful for the depends system. Test Plan: cd depends make print-build_arch Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D5652
- Fix gcc 9 warnings bitcoin#16995 - guix: Remove now-unnecessary gcc make flag bitcoin#18320 - build: Remove workaround for ancient libtool bitcoin#17066 - build: Add variable printing target to Makefiles bitcoin#17087 - Disable _FORTIFY_SOURCE when enable-debug bitcoin#17033
Summary: ``` I kept finding myself needing these to debug our build system, since they are innocuous and are very helpful they probably belong in the codebase. ``` Backport of core [[bitcoin/bitcoin#17087 | PR17087]]. Can be useful for the depends system. Test Plan: cd depends make print-build_arch Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D5652
Boost build backports Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#17087 - bitcoin/bitcoin#17231 - bitcoin/bitcoin#17928 - bitcoin/bitcoin#18820 - bitcoin/bitcoin#19764 Kudos to @dongcarl for all the excellent upstream depends system hackery!