From 2551ca3646156426a466cd9c62ad09d82af4a591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Mon, 8 Jul 2024 11:49:06 -0300 Subject: [PATCH] Update Cairo Native Setup section --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 19d60aa..ccea3ac 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,12 @@ make test Starknet Replay is currenlty integrated with [Cairo Native](https://github.com/lambdaclass/cairo_native), which makes the execution of sierra programs possible through native machine code. To use it, the following needs to be setup: -- LLVM `18` needs to be installed and the `MLIR_SYS_180_PREFIX` and `TABLEGEN_180_PREFIX` environment variable needs to point to said installation. In macOS, run +- 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: ``` - brew install llvm@18 - export MLIR_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18 export LLVM_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18 + export MLIR_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18 export TABLEGEN_180_PREFIX=/opt/homebrew/opt/llvm@18 ``` and you're set.