Skip to content

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

Closed
brvtalcake wants to merge 1 commit into
rust-lang:masterfrom
brvtalcake:feat-force-frame-pointers
Closed

[WIP] feat(manifest): add a force-frame-pointers profile option#15451
brvtalcake wants to merge 1 commit into
rust-lang:masterfrom
brvtalcake:feat-force-frame-pointers

Conversation

@brvtalcake

Copy link
Copy Markdown
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

rustbot commented Apr 23, 2025

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@rustbot

rustbot commented Aug 17, 2025

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (possibly #15841) made this pull request unmergeable. Please resolve the merge conflicts.

@ranger-ross

Copy link
Copy Markdown
Member

I am going to close this PR as its stale and there have been other developments in the issue. including merging #16742 which appears to do the same thing as this PR

I believe the latest update is: #15333 (comment)

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 28, 2026
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 T-cargo Team: Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow profiles to set -Cforce-frame-pointers

5 participants