Skip to content

Commit

Permalink
Update to LLVM_SYS_181_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Jul 8, 2024
1 parent d7d6035 commit 955f128
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ This project is integrated with Cairo Native, see [Cairo Native Setup](#cairo-na
Some environment variable are needed, you can automatically set them by sourcing `env.sh`. If the script doesn't adjust to your specific environment you can `cp` it into `.env` or `.envrc` and modify it.
```bash
# Cairo Native
export LLVM_SYS_181_PREFIX=/path/to/llvm-18
export MLIR_SYS_180_PREFIX=/path/to/llvm-18
export LLVM_SYS_180_PREFIX=/path/to/llvm-18
export TABLEGEN_180_PREFIX=/path/to/llvm-18
export CAIRO_NATIVE_RUNTIME_LIBRARY=/path/to/cairo_native/target/release/libcairo_native_runtime.a
# RPC
Expand All @@ -44,10 +44,10 @@ Starknet Replay is currenlty integrated with [Cairo Native](https://github.com/l

- On mac with brew, running `make deps` should have installed LLVM 18 with MLIR, otherwise, you must install it manually. On Debian, you can use `apt.llvm.org`, or build it from source.

- The `LLVM_SYS_180_PREFIX`, `MLIR_SYS_180_PREFIX` and `TABLEGEN_180_PREFIX` environment variable needs to point to said installation. In macOS, run:
- The `LLVM_SYS_181_PREFIX`, `MLIR_SYS_180_PREFIX` and `TABLEGEN_180_PREFIX` environment variable needs to point to said installation. In macOS, run:
```
export LLVM_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18
export MLIR_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18
export MLIR_SYS_181_PREFIX=/opt/homebrew/opt/llvm@18
export TABLEGEN_180_PREFIX=/opt/homebrew/opt/llvm@18
```
and you're set.
Expand Down
8 changes: 4 additions & 4 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
case $(uname) in
Darwin)
# If installed with brew
LLVM_SYS_181_PREFIX="$(brew --prefix llvm@18)"
MLIR_SYS_180_PREFIX="$(brew --prefix llvm@18)"
LLVM_SYS_180_PREFIX="$(brew --prefix llvm@18)"
TABLEGEN_180_PREFIX="$(brew --prefix llvm@18)"

export LLVM_SYS_181_PREFIX
export MLIR_SYS_180_PREFIX
export LLVM_SYS_180_PREFIX
export TABLEGEN_180_PREFIX
;;
Linux)
# If installed from Debian/Ubuntu repository:
LLVM_SYS_181_PREFIX=/usr/lib/llvm-18
MLIR_SYS_180_PREFIX=/usr/lib/llvm-18
LLVM_SYS_180_PREFIX=/usr/lib/llvm-18
TABLEGEN_180_PREFIX=/usr/lib/llvm-18

export LLVM_SYS_181_PREFIX
export MLIR_SYS_180_PREFIX
export LLVM_SYS_180_PREFIX
export TABLEGEN_180_PREFIX
;;
esac
Expand Down

0 comments on commit 955f128

Please sign in to comment.