From 19613a652ed593156ffb9f8bb171a099e44e1f7c Mon Sep 17 00:00:00 2001 From: Cassie Jones Date: Tue, 3 Mar 2020 02:29:48 +0100 Subject: [PATCH] Require ivy_rt.a to be on the library path Currently the compiler would only work correctly when run from the current directory. It's not useful to have it required, so making the library named something more distinct and requiring it be on the path is a more scalable option. --- rt/Cargo.toml | 2 +- src/main.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rt/Cargo.toml b/rt/Cargo.toml index 067272c..37986bb 100644 --- a/rt/Cargo.toml +++ b/rt/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rt" +name = "ivy-rt" version = "0.1.0" authors = ["Cassie Jones "] edition = "2018" diff --git a/src/main.rs b/src/main.rs index e40b16a..4d53c52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,8 +98,7 @@ fn main() -> io::Result<()> { .args(&[ "-masm=intel", "-nostartfiles", - "-Lrt/target/release", - "-lrt", + "-livy_rt", "-Wl,-e,_start", ]) .arg(file.path()) -- 2.43.2