diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-10-16 10:00:52 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-02-23 09:48:32 -0800 |
| commit | 6a8330af598753d5982a37933beeac2d6b565386 (patch) | |
| tree | 8d1ffe03bc0b110f4f6e0389bfd4c73c051523f4 /docs | |
| parent | 2c7833b1c9e77d244bdbfc2b96422854f36fc68c (diff) | |
| download | meson-6a8330af598753d5982a37933beeac2d6b565386.tar.gz | |
rust/bindgen: Use Meson rules for C++ headers
Bindgen natively only considers .hpp to be C++ headers, but Meson
considers some additional extensions including .hh and .hxx to be C++.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/snippets/rust-bindgen-cpp.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/snippets/rust-bindgen-cpp.md b/docs/markdown/snippets/rust-bindgen-cpp.md new file mode 100644 index 000000000..e12e0f966 --- /dev/null +++ b/docs/markdown/snippets/rust-bindgen-cpp.md @@ -0,0 +1,6 @@ +## Bindgen will now use Meson's hueristic for what is a C++ header + +Bindgen natively assumes that a file with the extension `.cpp` is a C++ header, +but that everything else is a C header. Meson has a whole list of extensions it +considers to be C++, and now will automatically look for those extensions and +set bindgen to treat those as C++ |
