Debian11 安装clang-14 clang++-14
安装依赖
apt-get install software-properties-common gpg -y
通过llvm安装
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh) 14"
vim ~/.bashrc
添加
alias ll='ls -hal'
alias CC=clang-14
alias CXX=clang++-14
alias clang=clang-14
alias clang++=clang++14
alias CMAKE_C_COMPILER=clang-14
alias CMAKE_CXX_COMPILER=clang++-14
慎装15, 15编译器对C代码执行引入强制检查
发表回复