From f67a7227b7052608a23d1e324c29f8ec6addf58a Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 26 Dec 2014 01:38:07 +0100 Subject: liballoc does not need liblibc under certain configurations --- src/liballoc/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/liballoc') diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index ba6e89cdd76..3de77b05228 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -69,6 +69,8 @@ #[macro_use] extern crate core; + +#[cfg(all(not(external_funcs), not(external_crate)))] extern crate libc; // Allow testing this library -- cgit 1.4.1-3-g733a5