about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2016-12-19 16:59:44 +0900
committerGitHub <noreply@github.com>2016-12-19 16:59:44 +0900
commit05be48b18b896c16b36cf3f68c14c87b79081f94 (patch)
treeae6628c5ebb622603c6518865d2b46e60ad1aefd /src/rustllvm/RustWrapper.cpp
parentfda41c6b5cbdd7d848eb1011d4a22b496e077f00 (diff)
parentb3b2f1b0d626e79c0a4dd8650042fb805b79a6c4 (diff)
downloadrust-05be48b18b896c16b36cf3f68c14c87b79081f94.tar.gz
rust-05be48b18b896c16b36cf3f68c14c87b79081f94.zip
Rollup merge of #38459 - nagisa:rustbuild-exec, r=alexcrichton
Use exec for the wrapper on UNIXes

This not only avoids the small – and unnecessary – constant overhead for each compiler invocation,
but also helps somewhat by only having “correct” rustc processes to look for in `/proc/`.

This also makes the wrapper behave effectively as a regular exec wrapper its intended to be.

I also took liberty to change the fallback error code from `1` to `0xfe` (now only relevant on windows) so that when people complain about “compiler exited with code 254”, its obvious where the issue lies (wrapper losing the exit code somehow).

r? @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions