Skip to content

Commit

Permalink
feat(blockifier): update cairo native to 0.2.0-alpha.2 (#1241)
Browse files Browse the repository at this point in the history
* feat: update cairo native to 0.2.0-alpha.2

* chore: update script to install llvm-19

* chore: bump mac os llvm install to v19
  • Loading branch information
rodrigo-pino authored and guy-starkware committed Oct 22, 2024
1 parent 69aac16 commit 673b450
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[env]
LLVM_SYS_181_PREFIX = "/usr/lib/llvm-18/"
MLIR_SYS_180_PREFIX = "/usr/lib/llvm-18/"
TABLEGEN_180_PREFIX = "/usr/lib/llvm-18/"
LLVM_SYS_191_PREFIX = "/usr/lib/llvm-19/"
MLIR_SYS_190_PREFIX = "/usr/lib/llvm-19/"
TABLEGEN_190_PREFIX = "/usr/lib/llvm-19/"

# Use `lld` for linking instead of `ld`, since we run out of memory while linking with `ld` on
# 16-cores linux machines, see:
Expand Down
48 changes: 30 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ cairo-lang-sierra = "=2.8.2"
cairo-lang-sierra-to-casm = "2.8.2"
cairo-lang-starknet-classes = "2.8.2"
cairo-lang-utils = "2.8.2"
# This is a temporary dependency, will be removed once the new version of cairo-native is released to main.
cairo-native = { git = "https://github.com/lambdaclass/cairo_native", rev = "2be717cba74c63628cb68b619ff2022c70d0cdd2" }
cairo-native = "0.2.0-alpha.2"
cairo-vm = "=1.0.1"
camelpaste = "0.1.0"
chrono = "0.4.26"
Expand Down
10 changes: 5 additions & 5 deletions scripts/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ function setup_llvm_deps() {
case "$(uname)" in
Darwin)
brew update
brew install llvm@18
brew install llvm@19
;;
Linux)
$SUDO bash -c 'curl https://apt.llvm.org/llvm.sh -Lo llvm.sh
bash ./llvm.sh 18 all
bash ./llvm.sh 19 all
rm -f ./llvm.sh
apt update && apt install -y \
libgmp3-dev \
libmlir-18-dev \
libpolly-18-dev \
libmlir-19-dev \
libpolly-19-dev \
libzstd-dev \
mlir-18-tools \
mlir-19-tools \
lld
'
;;
Expand Down

0 comments on commit 673b450

Please sign in to comment.