about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-28 13:35:35 +0100
committerGitHub <noreply@github.com>2019-03-28 13:35:35 +0100
commitf6d2a3feb7ed7934e47b353dc91bd5e70c1dacdf (patch)
treeddcd3173f5a8f79b5c2f266ef607064b8333a5da /src/libstd/sys/unix/stack_overflow.rs
parent4720fcac4c8a9667f8160a67260a080a2553cd58 (diff)
parent664838582b6d973620930a2ba75f369f44debecd (diff)
downloadrust-f6d2a3feb7ed7934e47b353dc91bd5e70c1dacdf.tar.gz
rust-f6d2a3feb7ed7934e47b353dc91bd5e70c1dacdf.zip
Rollup merge of #59318 - alexcrichton:check-for-clang, r=michaelwoerister
rustc: Update linker flavor inference from filename

This commit fixes what is believed to be a preexisting bug in the linker
flavor inference and additionally adds a new features. Previously if the
linker didn't end in `exe` the entire file name was compared to infer
the linker's flavor. This commit fixes the code to instead
unconditionally inspect `file_stem()` which is the relevant part we're
looking at to figure out what the linker flavor is.

Additionally this commit now also adds recognition of `clang` and clang
wrappers that end in `-clang` (which look like gcc wrappers). This
should allow clang-specific wrappers to get correctly inferred to the
`Gcc` linker flavor rather than the default linker flavor configured for
a target.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions