-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Make rust-demangler installable #83529
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
Conversation
I am trying to understand what happened here with the license files -- is there a reason those have been dropped into the rust-demangler source code directory? Generally that feels like the wrong move; we may instead copy the root-level licenses during packaging. |
This comment has been minimized.
This comment has been minimized.
I'll make that change. Thanks! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I would expect you to be able to either comment out rustfmt or test with something like x.py install src/tools/rust-demangler |
This comment has been minimized.
This comment has been minimized.
df1dc4b
to
d64e905
Compare
This comment has been minimized.
This comment has been minimized.
I updated the PR comment, first paragraph, based on my most recent patch, to make I also added tests (to support I believe my changes are now complete, pending review. |
This is done. I updated the README.md file to reference the licenses at the doc root. |
@tmandry @wesleywiser - FYI, this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, modulo minor comments that can be addressed in a follow-up. All the other people I'd want to look at this change already have, so
@bors r+ rollup=iffy
@bors r+ rollup=iffy I guess that doesn't work on review comments. |
📌 Commit a579912a82f55b19ccee03eda928fed348ec47c3 has been approved by |
⌛ Testing commit a579912a82f55b19ccee03eda928fed348ec47c3 with merge e8c648bd24b9dcd44bd8bda43d3a66b3b3d84ca3... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
I'm trying to reproduce the CI error that failed to find Is there something I can do to overcome this stack overflow error?:
Click to show stack overflow from `python x.py dist` on windows-msvc:
|
@bors retry |
Nevermind, probably not spurious @bors r- delegate+ |
✌️ @richkadel can now approve this pull request |
Adds bootstrap rules to support installing rust-demangler. When compiling with `-Z instrument-coverage`, the coverage reports are generated by `llvm-cov`. `llvm-cov` includes a built-in demangler for C++, and an option to supply an alternate demangler. For Rust, we have `rust-demangler`, currently used in `rustc` coverage tests. Fuchsia's toolchain for Rust is built via `./x.py install`. Fuchsia is adding support for Rust coverage, and we need to include the `rust-demangler` in the installed `bin` directory. Configured rust-demangler as an in-tree extended tool. Added tests to support `./x.py test rust-demangler`. Install with extended tools by default only if `profiler = true`.
@bors r=tmandry rollup=iffy |
📌 Commit ed89e6b has been approved by |
☀️ Test successful - checks-actions |
Adds bootstrap rules to support installing rust-demangler, as an optional, in-tree
extended
tool. It can be included by updatingconfig.toml
, settingextended = true
, and then either (a) adding"rust-demangler"
to thetools
array, or by enablingprofiler = true
. In other words, it is a defaultextended
tool ifprofiler = true
.When compiling with
-Z instrument-coverage
, the coverage reports aregenerated by
llvm-cov
.llvm-cov
includes a built-in demangler forC++, and an option to supply an alternate demangler. For Rust, we have
rust-demangler
, currently used inrustc
coverage tests.Fuchsia's toolchain for Rust is built via
./x.py install
. Fuchsia isadding support for Rust coverage, and we need to include the
rust-demangler
in the installedbin
directory.r? @tmandry