ubuntu20.04下安装llvm开发环境

CloudStudio下的机子,白嫖的。

➜  /proc cat /proc/version 
Linux version 5.4.119-19-0009.1 (root@VM_197_173_centos) (gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)) #1 SMP Sun Jan 23 23:20:30 CST 2022
➜  RemoteWorking cat /etc/issue
Ubuntu 20.04.5 LTS \n \l

image.png image.png

旗舰版大概编译2个小时不到(注意build的时候Type要选Release) image.png

刚编译完大概磁盘文件10g不到 image.png

参考链接: https://blog.csdn.net/qq_39420306/article/details/123159082 https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm https://github.com/llvm/llvm-project