compiler: notes on updating from upstream
This commit is contained in:
parent
fadac15a4c
commit
cdf7e1f007
1 changed files with 18 additions and 0 deletions
18
compiler/update-notes.md
Executable file
18
compiler/update-notes.md
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
occasionally, it may be required to sync with upstream capn proto changes. some quick notes on the process i've used here, assuming the updated capnproto repo is at CAPNP_CPP:
|
||||
|
||||
$ cp ${CAPNP_CPP}/c++/src/capnp/test.capnp .
|
||||
$ cp ${CAPNP_CPP}/c++/src/capnp/schema.capnp .
|
||||
$ cp ${CAPNP_CPP}/c++/src/capnp/c++.capnp .
|
||||
|
||||
fix up `schema.capnp` to reference the in-tree copy of `c++.capnp` (ie, `using Cxx = import "c++.capnp";` at the top of the file)
|
||||
|
||||
then, regenerate the schema support:
|
||||
|
||||
$ capnp compile -o ./capnpc-c compiler/schema.capnp
|
||||
|
||||
now try to regenerate again, based on the previously regenerated schema.
|
||||
|
||||
you can always check the capnpc formatted output during debugging:
|
||||
|
||||
$ capnp compile -ocapnpc-capnpc compiler/schema.capnp
|
||||
Loading…
Add table
Add a link
Reference in a new issue