Skip to content

samples: Properly filter samples by supported Rust targets #51

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
Jan 26, 2025
Merged

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Jan 25, 2025

Without explicitly declaring the need for Rust support, twister tries to build these samples on targest that don't yet support Rust. Include the filter, as well as an explicit platform allow of the supported targets.

Without explicitly declaring the need for Rust support, twister tries to
build these samples on targest that don't yet support Rust.  Include the
filter, as well as an explicit platform allow of the supported targets.

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z requested review from kartben, teburd and cfriedt January 25, 2025 06:34
@cfriedt
Copy link
Member

cfriedt commented Jan 25, 2025

Weird - one would think the filter would suffice.

@d3zd3z
Copy link
Collaborator Author

d3zd3z commented Jan 26, 2025

Weird - one would think the filter would suffice.

Two reasons for the target list. One is that there are a few obscure targets that use an arch we support with Rust, but don't actually work (notably, dynamic clocks prevent it from working).

The other is that the filter comes fairly late in the twister process, and it starts these builds and has to run kconfig in order to figure out whether Rust is enabled.

@d3zd3z d3zd3z merged commit c94328f into main Jan 26, 2025
3 checks passed
@d3zd3z d3zd3z deleted the fix-plat branch January 27, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants