Skip to content

Commit

Permalink
improve Ubuntu/Debian llvm install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-4 authored Oct 22, 2021
1 parent fdafbd2 commit 9b76f0c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BUILDING_FROM_SOURCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ For macOS, you can install LLVM 12 using `brew install llvm@12` and then adding
`/usr/local/opt/llvm/bin` to your `PATH`. You can confirm this worked by
running `llc --version` - it should mention "LLVM version 12.0.0" at the top.

For Ubuntu and Debian, you can use the `Automatic installation script` at [apt.llvm.org](https://apt.llvm.org):
For Ubuntu and Debian:
```
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
sudo apt -y install lsb-release software-properties-common gnupg
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 12
```

If you use this script, you'll need to add `clang` and `llvm-as` to your `PATH`.
Expand Down

0 comments on commit 9b76f0c

Please sign in to comment.