diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-03-27 12:37:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-27 12:37:23 +0900 |
| commit | e675d25506b560a8665d453b98a9685cf95a7f76 (patch) | |
| tree | 6ecd460881f42202d1d1758dbbd67767cc1eda1a /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 60cf7729cc0f7c6504cba753ddb0009a74451cde (diff) | |
| parent | 656f6ac975d3b8af6e780f1bc02e826e1629ed6a (diff) | |
| download | rust-e675d25506b560a8665d453b98a9685cf95a7f76.tar.gz rust-e675d25506b560a8665d453b98a9685cf95a7f76.zip | |
Rollup merge of #83511 - 12101111:fix-llvm-version-suffix, r=Mark-Simulacrum
compiletest: handle llvm_version with suffix like "12.0.0libcxx"
The previous code only remove the suffix begin with `-`, but Gentoo Linux [define `LLVM_VERSION_SUFFIX="libcxx"`](https://github.com/gentoo/gentoo/blob/604d79f327176eecb05293d7154e24231229cb31/sys-devel/llvm/llvm-11.1.0.ebuild#L378) when llvm is linked to libc++ and lead to a panic:
```
thread 'main' panicked at 'Malformed version component: ParseIntError { kind: InvalidDigit }', src/tools/compiletest/src/header.rs:968:28
```
This new code will handle all suffix not beginning with digit or dot.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions
