diff options
| author | Miguel Ojeda <[email protected]> | 2022-08-04 10:25:53 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2022-09-28 07:02:06 +0000 |
| commit | 78521f3399abce9bb9db16d848044be873e117ac (patch) | |
| tree | 918c5bd76a06424f8aa1d15c5c594a77bea86a45 /scripts/rust_is_available_bindgen_libclang.h | |
| parent | scripts: add `generate_rust_target.rs` (diff) | |
| download | kernel-78521f3399abce9bb9db16d848044be873e117ac.tar.gz kernel-78521f3399abce9bb9db16d848044be873e117ac.zip | |
scripts: add `rust_is_available.sh`
This script tests whether the Rust toolchain requirements are in place
to enable Rust support. It uses `min-tool-version.sh` to fetch
the version numbers.
The build system will call it to set `CONFIG_RUST_IS_AVAILABLE` in
a later patch.
It also has an option (`-v`) to explain what is missing, which is
useful to set up the development environment. This is used via
the `make rustavailable` target added in a later patch.
Reviewed-by: Kees Cook <[email protected]>
Co-developed-by: Alex Gaynor <[email protected]>
Signed-off-by: Alex Gaynor <[email protected]>
Co-developed-by: Wedson Almeida Filho <[email protected]>
Signed-off-by: Wedson Almeida Filho <[email protected]>
Co-developed-by: Finn Behrens <[email protected]>
Signed-off-by: Finn Behrens <[email protected]>
Co-developed-by: Miguel Cano <[email protected]>
Signed-off-by: Miguel Cano <[email protected]>
Co-developed-by: Tiago Lam <[email protected]>
Signed-off-by: Tiago Lam <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/rust_is_available_bindgen_libclang.h')
| -rw-r--r-- | scripts/rust_is_available_bindgen_libclang.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/rust_is_available_bindgen_libclang.h b/scripts/rust_is_available_bindgen_libclang.h new file mode 100644 index 000000000000..0ef6db10d674 --- /dev/null +++ b/scripts/rust_is_available_bindgen_libclang.h @@ -0,0 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#pragma message("clang version " __clang_version__) |
