Skip to content

Build system review#627

Merged
ojeda merged 9 commits intoRust-for-Linux:rustfrom
ojeda:rust-test-ci
Jan 16, 2022
Merged

Build system review#627
ojeda merged 9 commits intoRust-for-Linux:rustfrom
ojeda:rust-test-ci

Conversation

@ojeda
Copy link
Copy Markdown
Member

@ojeda ojeda commented Jan 16, 2022

This addresses Masahiro's feedback, improves cleaning behavior and the rust-is-available script.

ojeda added 9 commits January 15, 2022 23:23
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
It turns out that `__clang_version__` is not exactly the full version
(e.g. it may not include the `-` suffix), thus we cannot compare
the full versions -- we will have to wait until `bindgen` adds proper
support for printing the full version.

Also, made all version extraction a bit more robust and use the same
pattern everywhere.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This should make the warnings more visible without having to
run `rustavailable` manually.

If it turns out to be too annoying, we can remove it later on.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Now that we have `RUST_IS_AVAILABLE` with more checks, we can "safely"
remove `!COMPILE_TEST`.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This also makes it so that we enter `rust` on `clean`.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
…ules`

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
@ojeda ojeda merged commit 9646c0e into Rust-for-Linux:rust Jan 16, 2022
@ojeda ojeda deleted the rust-test-ci branch January 16, 2022 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant