about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-07 21:10:25 +0200
committerGitHub <noreply@github.com>2022-08-07 21:10:25 +0200
commit07315fe970c849ec712393720306a82bd5b4e75f (patch)
tree5e63b490ef7894fd0fe714f1b9b14bb3a74879a1 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent790377a0b9022d22ebd16ccc83750cc30c72a9e8 (diff)
parent5076c902a4b8f328d6a3ecf83fc86a1d0be09de4 (diff)
downloadrust-07315fe970c849ec712393720306a82bd5b4e75f.tar.gz
rust-07315fe970c849ec712393720306a82bd5b4e75f.zip
Rollup merge of #100206 - RalfJung:miri-terminfo, r=thomcc
test: skip terminfo parsing in Miri

Terminfo parsing takes a significant amount of time in Miri, making libtest startup very slow. To work around that Miri in fact unsets the `TERM` variable. However, this means we don't get colors in `cargo miri test`.

So I propose we add some logic in libtest that skips parsing terminfo files under Miri, and just uses the regular basic coloring commands (taken from the `colored` crate).

As far as I can see, these two commands are all that libtest ever needs from terminfo, so Miri doesn't even lose any functionality through this. If you want I can entirely remove the terminfo parsing code and just use these commands instead.

Cc https://github.com/rust-lang/miri/issues/2292 `@saethlin`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions