Skip to content

Commit

Permalink
update build instructions for macos (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita authored Nov 15, 2023
1 parent ccafcfb commit 0024d72
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions documentation/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,18 @@ For MacOSX:
add the location of llvm config to the $PATH:

.. code-block:: console
wget --no-verbose https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/clang+llvm-11.0.0-x86_64-apple-darwin.tar.xz
tar -xJf clang+llvm-11.0.0-x86_64-apple-darwin.tar.xz
export PATH=$PATH:$(pwd)/clang+llvm-11.0.0-x86_64-apple-darwin/bin
mkdir -p deps
cd deps
arch=`uname -m`
if [[ "$arch" == "arm64" ]]; then
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang+llvm-14.0.6-arm64-apple-darwin22.3.0.tar.xz -O clang_llvm_stock.tar.xz
else
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/clang+llvm-11.0.0-x86_64-apple-darwin.tar.xz -O clang_llvm_stock.tar.xz
fi
tar -xJf clang_llvm_stock.tar.xz
mv clang+llvm-* clang+llvm_stock
# Make sure to add to the END of the path
export PATH="$PATH:$(pwd)/clang+llvm_stock/bin"
Building
Expand Down

0 comments on commit 0024d72

Please sign in to comment.