mirror of
https://github.com/notwa/rc
synced 2024-11-05 06:39:02 -08:00
update example for setup_clang_ubuntu
This commit is contained in:
parent
37fab88237
commit
98f4d6ed67
1 changed files with 14 additions and 14 deletions
28
sh/compile
28
sh/compile
|
@ -6,20 +6,20 @@ setup_clang_ubuntu() { ### @-
|
|||
### a fairly recent version of clang on ubuntu-based distros.
|
||||
###
|
||||
### ```sh
|
||||
### $ setup_clang_ubuntu bionic
|
||||
### wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
||||
### echo -n "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
|
||||
### # deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
|
||||
### # 12
|
||||
### deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main
|
||||
### # deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main
|
||||
### " > /etc/apt/sources.list.d/llvm-toolchain-bionic.list
|
||||
### apt-get update
|
||||
### apt-get install clang-12
|
||||
### apt-get install lld-12
|
||||
### update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 1200
|
||||
### update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 1200
|
||||
### update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-12 1200
|
||||
### $ setup_clang_ubuntu noble
|
||||
### wget -O- http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
||||
### echo > "/etc/apt/sources.list.d/llvm-toolchain-noble.list" \
|
||||
### "
|
||||
### deb http://apt.llvm.org/noble/ llvm-toolchain-noble main
|
||||
### # deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main
|
||||
### # 18
|
||||
### deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main
|
||||
### # deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main"
|
||||
### export DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=1
|
||||
### apt-get update -y && apt-get install -y clang-18 lld-18
|
||||
### update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 1800
|
||||
### update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 1800
|
||||
### update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-18 1800
|
||||
### ```
|
||||
|
||||
local site="http://apt.llvm.org"
|
||||
|
|
Loading…
Reference in a new issue