- #全量下载
- git clone https://github.com/llvm/llvm-project.git
- #只下载最新commit版本
- git clone --depth 1 https://github.com/llvm/llvm-project.git
-
- #配置
- #!/bin/bash
- set -ex
- cmake -S llvm -B build -DCMAKE_INSTALL_PREFIX=/data0/huozai/software/installed -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"
- #-DCMAKE_BUILD_TYPE=Debug
- #编译安装
- cd build
- make -j50
- make install
Getting Started with the LLVM System — LLVM 18.0.0git documentation
Getting Started with the LLVM System — LLVM 18.0.0git documentation