about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/array-not-vector.rs
diff options
context:
space:
mode:
authorJonathan Schwender <jonathan.schwender@huawei.com>2023-01-05 14:14:23 +0100
committerJonathan Schwender <jonathan.schwender@huawei.com>2023-01-13 17:20:37 +0100
commit3bc2970a2e5f80f04ac2c1b1c1e4ec06a001f151 (patch)
treedd48688a3eb86e4e0d5f91d131f8d09ee40435da /tests/ui/array-slice-vec/array-not-vector.rs
parent5ca6f7d2c34953ee360ccf7d3c84c7853ea2df4b (diff)
downloadrust-3bc2970a2e5f80f04ac2c1b1c1e4ec06a001f151.tar.gz
rust-3bc2970a2e5f80f04ac2c1b1c1e4ec06a001f151.zip
Improve linker-flavor detection
Linker drivers such as gcc, clang or lld often have a version postfix,
e.g clang-12. The previous logic would not account for this and would
fall back to guessing the linker flavor to be the default linker flavor
for the target, which causes linker errors when this is not the case.
By accounting for the possible version postfix and also considering
g++ and clang++, we considerably reduce the amount of times the
fallback guess has to be used.

To simplify matching check for a version postfix and match against the
linker stem without any version postfix.
In contrast to gcc, clang supports all architectures in one binary.
This means there are no variants like `aarch64-linux-gnu-clang` and
there is no need to check for `-clang` variants.
Diffstat (limited to 'tests/ui/array-slice-vec/array-not-vector.rs')
0 files changed, 0 insertions, 0 deletions