1. 下载ninja-linux
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
2. 解压到 /usr/local/bin/ (需要sudo权限)
sudo unzip ninja-linux.zip -d /usr/local/bin/
3. 设置默认的ninja命令(需要sudo权限)
sudo update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force