Cloud Agent VM bootstrap (LLVM 22)¶
Fresh Cursor Cloud VMs must install LLVM 22 (org pin) before lic builds. Older install scripts pinned LLVM 18 and failed with set -u + wrong LLVM_DIR expansion.
One-line install script (Cursor Cloud settings)¶
Point the environment install script at (org-wide pull + LLVM 22 + dashboard-next):
Minimal lic-only bootstrap (no org git pull):
Do not use inline cmake -DLLVM_DIR="$LLVM_DIR" with a same-line LLVM_DIR=… prefix under set -u — bash expands $LLVM_DIR before the assignment and fails with unbound variable.
What it does¶
- Runs
scripts/ci-install-llvm.sh(LLVM 22, clang-22, lld-22, llvm-22-dev). - Sources
scripts/llvm-env.shand writes~/.config/environment.d/99-li-cloud.conf. - Runs
./scripts/build.shinlic(skip withLI_CLOUD_SKIP_BUILD=1). - Optional:
benchmarks/dashboardnpm ci(skip withLI_CLOUD_SKIP_BENCHMARKS=1). pip3 install pytestwhen available.
Verify¶
source ~/.config/environment.d/99-li-cloud.conf
clang-22 --version
/agent/repos/lic/build/compiler/lic/lic --version
Related¶
- getting-started-tools.md — LLVM 22 manual install
- devbox-li-development.md — long-lived dev machines
scripts/setup-li-devbox.sh— sudo + Node for engine hosts