Commit Graph
17 Commits
Author SHA1 Message Date
narpfel f5efd390fa Optionally show disambiguating hashes in demangled Rust identifiers (#6265)
Demangled Rust identifiers under the `legacy` name mangling scheme rely
on a hash to disambiguate items with the same name, such as different
monomorphisations of the same function or different closures’
`call_once` methods.

In the `v0` mangling scheme, this is no longer a problem. However,
configuring the demangler to show hashes in `legacy` names will include
crate-id hashes in `v0` names, which are [mostly
unneeded](https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html#appendix-a---suggested-demangling).

This PR introduces a new checkbox *Options...* → *Verbose demangling*
that lets the user select if they want to include disambiguating hashes
in demangled identifiers.

This checkbox is only shown for compilers that support verbose
demangling, and deactivated when the *Demangle identifiers* checkbox is
unchecked.

Resolves #1754.
Resolves #6255.
2024-04-01 21:58:42 -05:00
narpfel 112d326905 Use verbose version flag to get rustc version (#5616)
`rustc` by default only gives a short version output like this
```console
$ rustc --version
rustc 1.75.0-nightly (42b1224e9 2023-10-15)
```

There is, however, a more verbose version info that also includes the
LLVM version used:
```console
$ rustc --version --verbose
rustc 1.75.0-nightly (42b1224e9 2023-10-15)
binary: rustc
commit-hash: 42b1224e9eb37177f608d3f6a6f2be2ee13902e4
commit-date: 2023-10-15
host: x86_64-unknown-linux-gnu
release: 1.75.0-nightly
LLVM version: 17.0.2
```

This is useful information, so it should be accessible.

---

I’d normally have used `--version --verbose`, but it seems that the
`versionFlag` property is passed as one single argument to `rustc` and
not split on spaces, so I used the short form `-vV` instead.
2023-10-18 14:03:44 -05:00
Samuel Bronson ddd66219c7 Update rust.default.properties (#4053)
`rustfilt` ended up at a different path for me, and the "absolute path as compiler name" compatibility kludge seems not to work anymore.

(Also, this way it matters less where rustc is installed.)
2022-11-29 17:08:33 -06:00
Matt Godbolt 263ff0ed72 Support binary in rust.
Closes #509
2020-05-28 23:11:03 -05:00
RabsRincon 9c4e0aa70b Make tools path configurable 2019-06-02 13:31:00 +02:00
Matt Godbolt c33fe9cd86 Adjust defaults to point at (presumed installed) ../compiler-explorer-tools/ demanglers 2019-06-01 11:15:38 -05:00
Matt Godbolt ea31e8d1a4 Derive compile filename from the extensions 2017-12-05 18:59:17 -06:00
Matt Godbolt a3a1f55602 Reduce the amount of rust gunk that makes it into the distribution tarball 2017-10-18 09:35:23 -05:00
Rubén 4c5f1bfd70 Add library inclusion dropdown
C++ is tested. Every other language is "unsupported" right now
D works (But there are no libs yet, I'm talking with
	@JohanEngelen to see which could be useful)
Haskell should work (Asked @TartanLlama if we could use some)
ispc should work
Every other language is unconfirmed. Please test if you can!

The syntaxis is similar to what's already there.
c++.amazon.properties has a working example which you can use
	as a template

If you find any broken piece, please let me know.
Thank to @mattgodbolt for the testing :D

This closes #490 for now. Maybe a newer ui pretties it up
2017-09-19 07:21:55 +02:00
Matt Godbolt dfd691b826 Configurable objdump. Use GCC 6.3's binutils on the live site 2017-04-16 08:15:30 -05:00
Matt Godbolt 314c062c3a Add rust demangling - #213 2016-12-23 10:02:03 -06:00
Matt Godbolt af280a82cb More TODOs done; some rust ones added (until I get that working again) 2016-12-07 13:19:27 -06:00
Matt Godbolt 7a129ac116 Remove -O by default in rust 2016-05-09 08:45:52 -05:00
Matt Godbolt 8075521d3b Disable binary for rust too; still too chatty 2015-11-28 21:52:12 -06:00
Matt Godbolt 0e55624881 Configurable binary support 2015-11-28 10:15:03 -06:00
Matt Godbolt ce7d6661be More config tweaks; fix up TODO 2015-11-27 15:45:38 -06:00
Matt Godbolt 79a0f6e12d Misc WIP on changing configuration to be lang-specific and to fix up some more binary things found along the way 2015-11-26 13:12:56 -06:00