From cdf7e1f00770af144e07c7430ae1774526cbb4e0 Mon Sep 17 00:00:00 2001 From: Liam Staskawicz Date: Tue, 4 Aug 2015 12:04:49 -0700 Subject: [PATCH] compiler: notes on updating from upstream --- compiler/update-notes.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 compiler/update-notes.md diff --git a/compiler/update-notes.md b/compiler/update-notes.md new file mode 100755 index 0000000..5645850 --- /dev/null +++ b/compiler/update-notes.md @@ -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