Skip to content

Invoke capnp compile from mpgen #9

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

Merged
merged 1 commit into from
Aug 6, 2019

Conversation

ryanofsky
Copy link
Collaborator

This simplifies multiprocess build code somewhat (bitcoin/bitcoin#16367) so it only has to invoke one code generator instead of two, and is probably a little more future proof in that is should make it possible to change capnp options without any requiring changes outside libmultiprocess.

@ryanofsky ryanofsky merged commit f89e4b3 into bitcoin-core:master Aug 6, 2019
ryanofsky added a commit that referenced this pull request Aug 6, 2019
f89e4b3 Invoke capnp compile from mpgen (Russell Yanofsky)

Pull request description:

  This simplifies multiprocess build code somewhat (bitcoin/bitcoin#16367) so it only has to invoke one code generator instead of two, and is probably a little more future proof in that is should make it possible to change capnp options without any requiring changes outside libmultiprocess.

Top commit has no ACKs.

Tree-SHA512: 64534ec8d020eaf6a2dd351e4e48bf3a7a9897c126db1585c259950070b513aa9a416204e64ad1ab16717f41c534b9aafced4844039ed1f9037550946533445e
@hebasto
Copy link
Member

hebasto commented May 1, 2022

A commit from the future:

Screenshot from 2022-05-01 17-27-22

😃

@ryanofsky
Copy link
Collaborator Author

ryanofsky commented May 13, 2022

😃

Yeah, I messed this up, and there isn't a good way to fix it without rewriting all the hashes in commit history. Could do if I find a convenient tool that does this.

@@ -475,13 +524,13 @@ void Generate(kj::StringPtr output_stem, kj::StringPtr input_schema, kj::ArrayPt
int main(int argc, char** argv)
{
if (argc < 3) {
fprintf(stderr, "Usage: " PROXY_BIN " OUTPUT_STEM INPUT_SCHEMA [IMPORT_PATH...]\n");
fprintf(stderr, "Usage: " PROXY_BIN " SRC_PREFIX SRC_FILE [IMPORT_PATH...]\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be

-        fprintf(stderr, "Usage: " PROXY_BIN " SRC_PREFIX SRC_FILE [IMPORT_PATH...]\n");
+        fprintf(stderr, "Usage: " PROXY_BIN " SRC_PREFIX INCLUDE_PREFIX SRC_FILE [IMPORT_PATH...]\n");

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be

Good catch. Should be fixed in #80

ryanofsky added a commit to ryanofsky/libmultiprocess that referenced this pull request Sep 19, 2022
Also add comment to describe argument meanings. Problem with string
was reported by Hennadii Stepanov <[email protected]>
bitcoin-core#9 (comment)
ryanofsky added a commit that referenced this pull request Sep 19, 2022
fcad5fb doc: Fix mpgen usage string (Ryan Ofsky)

Pull request description:

  Also add comment to describe argument meanings.

  Problem with string was reported by hebasto in #9 (comment)

Top commit has no ACKs.

Tree-SHA512: e92c67f3856b175c52471eb2ab3f0d42a98cae843b48e353d2d2be83621bc23eca9e316133b72e7006f63bfe8b4df5e5801859d28863ef94f2c2131b08a8801c
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jun 25, 2025
This simplifies multiprocess build code somewhat
(bitcoin/bitcoin#16367) so it only has to invoke one
code generator instead of two, and is probably a little more future proof in
that is should make it possible to change capnp options without any requiring
changes outside libmultiprocess.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants