Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Allow disabling of asm sections per target-features #51

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

MabezDev
Copy link
Member

@MabezDev MabezDev commented Jan 5, 2023

  • Read rustc target features
  • Check for any features disabled
  • match the disabled features with XCHAL variants
  • don't emit asm for disabled features

Now in the top level project, if you pass "-C", "target-feature=-loop", the feature is disabled in llvm and xtensa-lx-rt won't emit the feature specific asm.

- Read rustc target features
- Check for any features disabled
- match the disabled features with XCHAL variants
- don't emit asm for disabled features
@MabezDev MabezDev requested a review from bjoernQ January 5, 2023 15:16
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Didn't knew about CARGO_ENCODED_RUSTFLAGS

@MabezDev MabezDev merged commit fd1f3a9 into master Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants