mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -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.
|
### a fairly recent version of clang on ubuntu-based distros.
|
||||||
###
|
###
|
||||||
### ```sh
|
### ```sh
|
||||||
### $ setup_clang_ubuntu bionic
|
### $ setup_clang_ubuntu noble
|
||||||
### wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
### 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
|
### echo > "/etc/apt/sources.list.d/llvm-toolchain-noble.list" \
|
||||||
### # deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main
|
### "
|
||||||
### # 12
|
### deb http://apt.llvm.org/noble/ llvm-toolchain-noble main
|
||||||
### deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main
|
### # deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main
|
||||||
### # deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main
|
### # 18
|
||||||
### " > /etc/apt/sources.list.d/llvm-toolchain-bionic.list
|
### deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main
|
||||||
### apt-get update
|
### # deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main"
|
||||||
### apt-get install clang-12
|
### export DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=1
|
||||||
### apt-get install lld-12
|
### apt-get update -y && apt-get install -y clang-18 lld-18
|
||||||
### update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 1200
|
### update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 1800
|
||||||
### update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 1200
|
### 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-12 1200
|
### update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-18 1800
|
||||||
### ```
|
### ```
|
||||||
|
|
||||||
local site="http://apt.llvm.org"
|
local site="http://apt.llvm.org"
|
||||||
|
|
Loading…
Add table
Reference in a new issue