wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-12.2.0/gcc-12.2.0.tar.gz tar zxf gcc-12.2.0.tar.gz cd gcc-12.2.0 ./contrib/download_prerequisites mkdir build cd build ../configure -prefix=/usr/local/gcc-12.2.0 --enable-checking=release --enable-languages=c,c++ --disable-multilib make all make install
wget https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-13.0.1.tar.gz tar -zxf llvmorg-13.0.1.tar.gz cd llvm-project-llvmorg-13.0.1 mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -G "Unix Makefiles" ../llvm make # 这一步十分耗时,建议放后台跑 make install