Skip to content

[WIP] feat(manifest): add a force-frame-pointers profile option #15451

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brvtalcake
Copy link
Contributor

What does this PR try to resolve?

This PR resolves #15333, and a force-frame-pointers option for profiles. It also fixes tests related to profiles, and adds some basic tests for the new option itself.

How should we test and review this PR?

Run the tests in tests/testsuite/profiles.rs :

  • force_frame_pointers_on_works
  • force_frame_pointers_off_works
  • force_frame_pointers_unspecified_works

Additional information

See, however, the discussion in the linked issue, as there might be some changes needed

@rustbot
Copy link
Collaborator

rustbot commented Apr 23, 2025

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-build-execution Area: anything dealing with executing the compiler A-manifest Area: Cargo.toml issues A-profiles Area: profiles S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 23, 2025
@epage epage added the T-cargo Team: Cargo label Apr 23, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Some of the solution details are still being discussed in #15451

Comment on lines +707 to +708
#[cargo_test]
fn force_frame_pointers_on_works() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you be up for putting the tests in a previous commit without force-frame-pointers, having them pass, showing the existing behavior? Then in this commit, the diff highlights the new feature and what it changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem, I can do that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

EDIT : I suppose I should first wait for a conclusion to the conversation in the related issue ?

@brvtalcake brvtalcake marked this pull request as draft April 23, 2025 21:41
@brvtalcake brvtalcake changed the title feat(manifest): add a force-frame-pointers profile option [WIP] feat(manifest): add a force-frame-pointers profile option Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-execution Area: anything dealing with executing the compiler A-manifest Area: Cargo.toml issues A-profiles Area: profiles S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cargo Team: Cargo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow profiles to set -Cforce-frame-pointers
4 participants