Skip to content

Makefile: run Rust build on prepare #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Conversation

ojeda
Copy link
Member

@ojeda ojeda commented Feb 8, 2022

Some architectures add flags between prepare0 and prepare.
This makes e.g. bindgen think flags have changed.

Thus, instead of running build in prepare0, do it a bit later
in prepare since we do not need anything before.

This solves the arm64 CI issues we were seeing since the container
move: the CI now uses Clang 13 instead of 12, and Clang 13
introduced SysReg Stack Protector Guards which were being set.

This also makes the PowerPC hack unnecessary, which was no
longer needed anyway since commit 336868a ("powerpc: smp:
remove hack to obtain offset of task_struct::cpu").

Signed-off-by: Miguel Ojeda [email protected]

Some architectures add flags between `prepare0` and `prepare`.
This makes e.g. `bindgen` think flags have changed.

Thus, instead of running `build` in `prepare0`, do it a bit later
in `prepare` since we do not need anything before.

This solves the arm64 CI issues we were seeing since the container
move: the CI now uses Clang 13 instead of 12, and Clang 13
introduced SysReg Stack Protector Guards which were being set.

This also makes the PowerPC hack unnecessary, which was no
longer needed anyway since commit 336868a ("powerpc: smp:
remove hack to obtain offset of task_struct::cpu").

Signed-off-by: Miguel Ojeda <[email protected]>
@ojeda ojeda merged commit a274015 into Rust-for-Linux:rust Feb 9, 2022
@ojeda ojeda deleted the prepare-fix branch February 9, 2022 00:15
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