]> git.lizzy.rs Git - rust.git/commit
bootstrap: Add directives to not double-link libs
authorAlex Crichton <alex@alexcrichton.com>
Thu, 21 Jan 2016 23:36:25 +0000 (15:36 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 11 Feb 2016 19:12:32 +0000 (11:12 -0800)
commiteac0a8bc3070e45047fff57e7b024a059289a36d
treecbcaa9dc371f2b11fe2e9b9d3ee7a3f7a9cfdb8e
parent4da4970767ae8fc2e3b6d0c280312bb0f4efeed6
bootstrap: Add directives to not double-link libs

Have all Cargo-built crates pass `--cfg cargobuild` and then add appropriate
`#[cfg]` definitions to all crates to avoid linking anything if this is passed.
This should help allow libstd to compile with both the makefiles and with Cargo.
15 files changed:
src/liballoc_jemalloc/build.rs
src/liballoc_jemalloc/lib.rs
src/libflate/build.rs
src/libflate/lib.rs
src/librustc_llvm/build.rs
src/librustc_llvm/lib.rs
src/librustdoc/build.rs
src/librustdoc/html/markdown.rs
src/libstd/build.rs
src/libstd/rand/os.rs
src/libstd/rtdeps.rs
src/libstd/sys/common/gnu/libbacktrace.rs
src/libstd/sys/common/unwind/gcc.rs
src/libstd/sys/unix/os.rs
src/libstd/sys/windows/c.rs