From bdf7e9608a961371bb1e0fb03215c33371d9a95f Mon Sep 17 00:00:00 2001 From: Maciej Dziardziel Date: Tue, 5 Jan 2016 23:19:51 +0000 Subject: [PATCH] make it working with nightly, set RUST_ROOT to /usr by default --- Makefile | 6 +++++- main.rs | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f1902e9..b63f815 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -RUST_ROOT := +ifdef RUST_ROOT + RUST_ROOT := $(RUST_ROOT) +else + RUST_ROOT := /usr +endif -include ./config.mk diff --git a/main.rs b/main.rs index 2013999..e1158be 100644 --- a/main.rs +++ b/main.rs @@ -1,11 +1,9 @@ -#![feature(core)] #![feature(core_str_ext)] #![feature(libc)] #![feature(no_std)] #![no_std] -extern crate core; extern crate libc; #[macro_use]