Skip to content

Commit b7e68b1

Browse files
committed
Update README
1 parent 2cafe7f commit b7e68b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For more info on how to run the compiler, refer to `cargo run -p unlisp -- --hel
1919
1. Install LLVM-7 and make it's binaries available on `PATH`:
2020
* Ubuntu: `sudo apt install llvm-7-dev`
2121
* OS X: `brew install llvm@7 && export PATH="/usr/local/opt/llvm@7/bin:$PATH"`
22-
1. `cargo build`
22+
1. `cargo build && cargo build --manifest-path ./unlisp_rt_staticlib/Cargo.toml`
2323

2424
## Features
2525

@@ -167,11 +167,11 @@ runtime error: undefined function undefined-fn
167167
## AOT compilation
168168

169169
To compile a file into a binary, the function named `-main` needs to be defined, which designates an entrypoint.
170-
Also make sure to run `cargo build` command before AOT compilation to build the runtime library (needs to be only done once).
170+
Also make sure to run `cargo build --manifest-path ./unlisp_rt_staticlib/Cargo.toml` command before AOT compilation to build static runtime library (needs to be only done once).
171171

172172

173173
```
174-
$ cargo build
174+
$ cargo build --manifest-path ./unlisp_rt_staticlib/Cargo.toml
175175
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
176176
177177
$ cat file.unl
@@ -182,7 +182,7 @@ $ cargo run -p unlisp -- compile -f file.unl -o binary
182182
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
183183
Running `target/debug/compiler compile -f file.unl -o binary`
184184
Compiling file: file.unl...
185-
Linking with runtime library: ./target/debug/libunlisp_rt.a...
185+
Linking with runtime library: ./unlisp_rt_staticlib/target/debug/libunlisp_rt.a...
186186
187187
$ ./binary
188188
89

0 commit comments

Comments
 (0)