]> git.lizzy.rs Git - rust.git/commit
auto merge of #20606 : alexcrichton/rust/stabilize-libc, r=brson
authorbors <bors@rust-lang.org>
Wed, 7 Jan 2015 12:25:15 +0000 (12:25 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Jan 2015 12:25:15 +0000 (12:25 +0000)
commitdfd557bd73a27966b242635b04f2a9fca6eadce8
tree44de29924c0b15bbf6af9056b0835baaf724d5b2
parenta3a16e9610aba6d4bb023721d1f8513fe260bd03
parent01ce6efd859ed6ce3d20d331ae6e035ebd0a7678
auto merge of #20606 : alexcrichton/rust/stabilize-libc, r=brson

This commit prepares the liblibc library to be moved to crates.io. Unlike the
log, serialize, term, etc crates, the source for this crate will *not* be
duplicated out-of-tree. Instead a new rust-lang/libc repository will be created
with a submodule to this repository and it will use the source directly.

In order to compile within the stable ecosystem of Rust, this crate cannot link
to libcore, and it also needs some tweaks for the other attributes that it has.
As a result this commit tweaks the source of the crate to link to libcore when
built in tree but link to libstd when built via cargo.

Note that the rust-lang/libc crate isn't quite prepared just yet, there's a
Cargo bug or two that I'd like to iron out before publishing it. This is simply
preparing the in-tree source.