Take core as a dependency on librlibc. This is needed so that it can

see the lang-items for Sized etc. @acrichto and @thestinger had no
objections.
This commit is contained in:
Niko Matsakis 2014-09-12 10:46:50 -04:00
parent b88f86782e
commit 713cf373c1
2 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,7 @@ CRATES := $(TARGET_CRATES) $(HOST_CRATES)
TOOLS := compiletest rustdoc rustc
DEPS_core :=
DEPS_rlibc :=
DEPS_rlibc := core
DEPS_unicode := core
DEPS_alloc := core libc native:jemalloc
DEPS_debug := std

View File

@ -35,12 +35,13 @@
// LLVM to optimize these function calls to themselves!
#![no_builtins]
#[phase(plugin, link)] extern crate core;
#[cfg(test)] extern crate native;
#[cfg(test)] extern crate test;
#[cfg(test)] extern crate debug;
#[cfg(test)] #[phase(plugin, link)] extern crate std;
#[cfg(test)] #[phase(plugin, link)] extern crate core;
// Require the offset intrinsics for LLVM to properly optimize the
// implementations below. If pointer arithmetic is done through integers the