From: kennytm Date: Mon, 3 Dec 2018 10:07:19 +0000 (+0800) Subject: Rollup merge of #56435 - RalfJung:libstd-without-c, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=21433f2812bf36c8149050d39b6fcf0b62a6f19b;p=rust.git Rollup merge of #56435 - RalfJung:libstd-without-c, r=alexcrichton 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 --- 21433f2812bf36c8149050d39b6fcf0b62a6f19b