about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-04 21:23:09 +0100
committerGitHub <noreply@github.com>2022-01-04 21:23:09 +0100
commite1a7743971077e96733e051396c3afab751f4b79 (patch)
tree023df4393108ae353dcbc651f3ed546c85199adf /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb9694a132f7857fb958d87867ba166aee2d392df (diff)
parente266cb90defc63c574c1fccaccdea0cb8133557f (diff)
downloadrust-e1a7743971077e96733e051396c3afab751f4b79.tar.gz
rust-e1a7743971077e96733e051396c3afab751f4b79.zip
Rollup merge of #92516 - Kobzol:bootstrap-symbol-mangling, r=Mark-Simulacrum
Do not use deprecated -Zsymbol-mangling-version in bootstrap

`-Zsymbol-mangling-version` now produces warnings unconditionally. So if you want to use legacy mangling for the compiler (`new-symbol-mangling = false` in `config.toml`), the build is now littered with warnings.

However, with this change, stage 1 `std` doesn't compile:
```
error: `-C symbol-mangling-version=legacy` requires `-Z unstable-options`
```
Even after the bootstrap compiler is updated and it will support `-Csymbol-mangling-version`, the bootstrap code would either need to use `-Z` for the legacy mangling or use `-C` in combination with `-Z unstable-options` (because `-C` + legacy is not allowed without the unstable options). Should we just add `-Z unstable-options` to `std` compilation to resolve this?

Btw I use legacy mangling because the new mangling is not supported by [Hotspot](https://github.com/KDAB/hotspot).
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions