Skip to content

Instantly share code, notes, and snippets.

@liangqi
Created August 3, 2026 12:22
Show Gist options
  • Select an option

  • Save liangqi/3e666168a1d6c5ad67de1017d1523efc to your computer and use it in GitHub Desktop.

Select an option

Save liangqi/3e666168a1d6c5ad67de1017d1523efc to your computer and use it in GitHub Desktop.
# 选一个磁盘空间充足的目录
mkdir -p ~/ohos-toolchain && cd ~/ohos-toolchain
# 用 llvm-toolchain manifest 初始化(只拉工具链所需仓库,不是完整 OHOS)
repo init -u https://gitcode.com/openharmony/manifest.git -b master -m llvm-22.0.0-toolchain.xml
repo sync -c
# 拉取 LFS 大文件(prebuilts 等)
repo forall -c 'git lfs pull'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment