1. 14 Dec, 2017 5 commits
  2. 13 Dec, 2017 1 commit
    • Kenton Varda's avatar
      Add support for Own<void>. · 5f2172c6
      Kenton Varda authored
      Any Own<T> can be converted to Own<void> (or Own<const void>). The main purpose of this is to give someone a way to invoke an object's disposer without them having to know anything about the type.
      5f2172c6
  3. 08 Dec, 2017 2 commits
  4. 06 Dec, 2017 1 commit
  5. 04 Dec, 2017 3 commits
  6. 02 Dec, 2017 1 commit
  7. 23 Nov, 2017 2 commits
  8. 21 Nov, 2017 2 commits
  9. 20 Nov, 2017 2 commits
    • Davide Italiano's avatar
    • Harris Hancock's avatar
      capnp_generate_cpp: Fix input file existence check · ae8859ce
      Harris Hancock authored
      capnp_generate_cpp() checks that input schema files exist at configure-time, and reports a fatal error if they don't exist. However, the check prepended the value of CAPNPC_SRC_PREFIX to input file paths, which is the wrong thing to do: the input file paths should be checked as-is if they are absolute paths, and checked relative to the current source directory, NOT the value of capnp's src-prefix flag, if they are relative paths, in order to match the capnp tool's behavior.
      
      It turns out that it's easiest to just unconditionally convert the input file paths to absolute paths, then check the absolute path. The reason is that we can't even pass relative paths to the capnp command, anyway: capnp interprets relative path inputs relative to its working directory, which defaults to the build dir. For consistency with other CMake commands (add_library, add_executable, etc.), it makes most sense if relative file path inputs to capnp_generate_cpp() are interpreted relative to the current source directory. This means that relative path inputs need to be converted to absolute paths before being fed to capnp, which was done right after the faulty existence check.
      
      This commit fixes the issue by modifying the existence check to check the path only after it's been converted to absolute form.
      
      Closes #586.
      ae8859ce
  10. 15 Nov, 2017 1 commit
  11. 14 Nov, 2017 2 commits
  12. 10 Nov, 2017 1 commit
  13. 07 Nov, 2017 10 commits
  14. 06 Nov, 2017 3 commits
  15. 27 Oct, 2017 1 commit
  16. 25 Oct, 2017 2 commits
  17. 24 Oct, 2017 1 commit