-
Notifications
You must be signed in to change notification settings - Fork 38.7k
cmake: Revamp handling of data files #30901
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
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/30901. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsNo conflicts as of last run. |
|
Friendly ping @ryanofsky :) |
|
tACK 0c35be6 I have based #28792 on this now. It works and seems like a nicer way to do what I need there than the previous approach. Take it with a grain of salt though because I don't think I am experienced enough with CMake to tell if there are any hidden issues with this approach or if there are even better ways to achieve this. |
Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use] |
0c35be6 to
9f14069
Compare
|
Rebased due to the conflict with the merged #31503. |
|
re-ACK 9f14069 Confirmed only rebase since last review per |
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
9f14069 to
4185ad1
Compare
|
Rebased due to the conflict with the merged #31542. |
|
Also, since you're messing with this, please consider the |
4185ad1 to
18cc0a5
Compare
Nice! Added. Please note that |
{test,bench}_bitcoin targets|
Hmm, something here has broken the dependency flattening. I'm seeing a stall again due to the file generation. |
What CMake version? |
This change introduces new functions `target_json_data_sources()` and `target_raw_data_sources()`.
Additionally, this change removes unnecessary braces in the `if()` command for improved robustness, readability and consistency with CMake guidelines.
18cc0a5 to
ecf54a3
Compare
I've removed the |
I believe |
Ok, Ignore this. I believe I was testing with make, where the stall is expected. Ninja is indeed unchanged. |
theuni
left a comment
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 ecf54a3
|
re-ACK ecf54a3 Only removed |
|
re-tACK ecf54a3 The range-diff shows that we persevere the Checked the same thing as last time: #30901 (comment)
It still is, and this PR still does. |
It:
I'm not sure how useful it is. |
This PR leverages the approach from the https://github.com/chaincodelabs/libmultiprocess project and introduces a new functions
target_json_data_sources()andtarget_raw_data_sources(), which minimize the amount of code required to assign to assign a*.jsonor*.rawdata file to thetest_bitcoin,bench_bitcoinorunitestertargets.As requested in #30901 (comment), the
codegenbuild target is now supported, if available: