Skip to content

Commit

Permalink
Fix env.sh. (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
azteca1998 authored Nov 27, 2024
1 parent 20e1d9f commit 2bad480
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
#
# You can copy this file to .envrc/.env and adapt it for your environment.

# This line will ensure that the script can be used from any directory, not just
# the project's root.
ROOT_DIR="$(realpath $(dirname "${BASH_SOURCE[0]}"))"

case $(uname) in
Darwin)
# If installed with brew
LIBRARY_PATH=/opt/homebrew/lib
MLIR_SYS_190_PREFIX="$(brew --prefix llvm@19)"
LLVM_SYS_191_PREFIX="$(brew --prefix llvm@19)"
TABLEGEN_190_PREFIX="$(brew --prefix llvm@19)"
CAIRO_NATIVE_RUNTIME_LIBRARY="$(pwd)/target/release/libcairo_native_runtime.a"
CAIRO_NATIVE_RUNTIME_LIBRARY="$ROOT_DIR/target/release/libcairo_native_runtime.a"

export LIBRARY_PATH
export MLIR_SYS_190_PREFIX
Expand All @@ -24,7 +28,7 @@ case $(uname) in
MLIR_SYS_190_PREFIX=/usr/lib/llvm-19
LLVM_SYS_191_PREFIX=/usr/lib/llvm-19
TABLEGEN_190_PREFIX=/usr/lib/llvm-19
CAIRO_NATIVE_RUNTIME_LIBRARY="$(pwd)/target/release/libcairo_native_runtime.a"
CAIRO_NATIVE_RUNTIME_LIBRARY="$ROOT_DIR/target/release/libcairo_native_runtime.a"

export MLIR_SYS_190_PREFIX
export LLVM_SYS_191_PREFIX
Expand Down

0 comments on commit 2bad480

Please sign in to comment.