]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #56435 - RalfJung:libstd-without-c, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Mon, 3 Dec 2018 10:07:19 +0000 (18:07 +0800)
committerGitHub <noreply@github.com>
Mon, 3 Dec 2018 10:07:19 +0000 (18:07 +0800)
make the C part of compiler-builtins opt-out

I'd like to be able to use Xargo to build a libstd without having a full C toolchain for the target.  This is a start (but the fact that libstd is a dylib is still a problem).

However, compiler_builtin already has somewhat similar logic to not require a C compiler for wasm:

https://github.com/rust-lang-nursery/compiler-builtins/blob/fe74674f6e4be76d47b66f67d529ebf4186f4eb1/build.rs#L36-L41

(WTF GitHub, why doesn't this show an embedded code preview??)

I wonder if there is a way to not have two separate mechanisms? Like, move the above wasm logic to some place that controls the libstd feature, or so? Or is it okay to have these two mechanisms co-exist?

Cc @alexcrichton


Trivial merge