Rename -Zdebuginfo-for-profiling switch#156887
Conversation
This comment has been minimized.
This comment has been minimized.
1c4094e to
58d2a68
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
- the test was ported from this commit: llvm/llvm-project@3009211
58d2a68 to
57e7bf4
Compare
|
Neat! you can rebase the other PR once this merges and then we'll nominate it. In the meantime, can you clean up the stabilization report over there a bit? the text from the template in quote blocks just makes the report longer for no reason, e.g. the tooling section is irrelevant, etc. The process will go faster if you can succinctly describe what we're actually dealing with. @bors r+ rollup |
Sure, will do it.
Sure, no problem. To be honest, I wanted to do it from the start, but in the Stabilization report template there are the following lines:
I've interpreted it as "Copy the whole template, remove nothing from template since it can potentially hide something useful for reviewers, place some N/A comments for non-applicable sections". But if I am wrong in my understanding and reviewers are okay with removing unnecessary parts - I'll happily do the refactoring of the report with removing useless stuff and explaining a bit more some missing details. Thanks a lot for the review! |
…ofiling-switch, r=folkertdev Rename `-Zdebuginfo-for-profiling` switch The PR was raised from this [comment](rust-lang#155942 (comment)) from another stabilization PR: rust-lang#155942 I renamed `-Zdebug-info-for-profiling` into `-Zdebuginfo-for-profiling` before stabilization to be consistent with other `debuginfo`-related Rustc flags like `-C split-debuginfo` and `-C debuginfo`. One important note is that Clang has the [flag](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fdebug-info-for-profiling) under `-fdebug-info-for-profiling`. I decided that consistency with other Rustc flags is more important here than to be consistent with Clang. r? folkertdev (as was proposed [here](rust-lang#155942 (comment)))
|
This pull request was unapproved. This PR was contained in a rollup (#156907), which was unapproved. |
|
Hmm, is it just a target issue (x86_64 behaves differently from aarch64)? We might need to pin the target using |
|
Aha, seems like discriminator-based test is architecture-dependent and the amount of emitted discriminators depends on the target platform. I can perform tests by myself for x86-64 and ARM architectures and limit the test only for these two archs. Is it okay to resolve this error in this way or we need a more generic solution to test on all architectures somehow? |
Sure, will do it. Do I need to pin to just one architecture or we can enable the test on both - aarch64 and x86-64 as for the most commonly used nowadays. |
|
you can specify a target per revision, so you'd get etc. Just those targets is fine for now I think, really we're just testing that the flag has an effect. |
The PR was raised from this comment from another stabilization PR: #155942
I renamed
-Zdebug-info-for-profilinginto-Zdebuginfo-for-profilingbefore stabilization to be consistent with otherdebuginfo-related Rustc flags like-C split-debuginfoand-C debuginfo.One important note is that Clang has the flag under
-fdebug-info-for-profiling. I decided that consistency with other Rustc flags is more important here than to be consistent with Clang.r? folkertdev (as was proposed here)