diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2023-06-27 23:57:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 23:57:13 +0300 |
commit | a4fb8dcc4111575c670c384e52bf1abb119879b9 (patch) | |
tree | bdf995d017f7452d7b96f17829d022a208243aba /docs/markdown/snippets | |
parent | 8946bc05f7f9cdd16dce3613c481a66f7835fc7f (diff) | |
parent | 6bfb47a455af60dc975e21dd82943d5baa2bea83 (diff) | |
download | meson-a4fb8dcc4111575c670c384e52bf1abb119879b9.zip meson-a4fb8dcc4111575c670c384e52bf1abb119879b9.tar.gz meson-a4fb8dcc4111575c670c384e52bf1abb119879b9.tar.bz2 |
Merge pull request #11902 from dcbaker/submit/rust-module-enhancements
Rust module enhancements for mesa
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/rust_bindegen_extra_args.md | 3 | ||||
-rw-r--r-- | docs/markdown/snippets/rust_extra_clang_bindgen_arguments.md | 8 | ||||
-rw-r--r-- | docs/markdown/snippets/rust_test_link_with.md | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/snippets/rust_bindegen_extra_args.md b/docs/markdown/snippets/rust_bindegen_extra_args.md new file mode 100644 index 0000000..209d0bc --- /dev/null +++ b/docs/markdown/snippets/rust_bindegen_extra_args.md @@ -0,0 +1,3 @@ +## rust.bindgen allows passing extra arguments to rustc + +This may be necessary to pass extra `cfg`s or to change warning levels. diff --git a/docs/markdown/snippets/rust_extra_clang_bindgen_arguments.md b/docs/markdown/snippets/rust_extra_clang_bindgen_arguments.md new file mode 100644 index 0000000..71268d4 --- /dev/null +++ b/docs/markdown/snippets/rust_extra_clang_bindgen_arguments.md @@ -0,0 +1,8 @@ +## A machine file may be used to pass extra arguments to clang in a bindgen call + +Because of the way that bindgen proxies arguments to clang the only choice to +add extra arguments currently is to wrap bindgen in a script, since the +arguments must come after a `--`. This is inelegant, and not very portable. Now +a `bindgen_clang_arguments` field may be placed in the machine file for the host +machine, and these arguments will be added to every bindgen call for clang. This +is intended to be useful for things like injecting `--target` arguments. diff --git a/docs/markdown/snippets/rust_test_link_with.md b/docs/markdown/snippets/rust_test_link_with.md new file mode 100644 index 0000000..9c2b7d6 --- /dev/null +++ b/docs/markdown/snippets/rust_test_link_with.md @@ -0,0 +1,4 @@ +## Add a `link_with` keyword to `rust.test()` + +This can already be be worked around by creating `declare_dependency()` objects +to pass to the `dependencies` keyword, but this cuts out the middle man. |