Clang (LLVM 14)
root@magi3:/softs/sources~# git clone https://github.com/llvm/llvm-project.git
root@magi3:/softs/sources/llvm-project# mkdir build && cd build
root@magi3:/softs/sources/llvm-project/build# cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_INSTALL_PREFIX=/softs/llvm-14 -G "Unix Makefiles" ../llvm
Make
root@magi3:/softs/sources/llvm-project/build# make && make install
Module file
root@magi3:~# cat /softs/modules/compiled/gcc/10.2.1/llvm/14
#%Module1.0
proc ModulesHelp { } {
global dotversion
puts stderr "\tLLVM 14"
}
module-whatis "LLVM 14"
prepend-path PATH /softs/llvm-14/bin
prepend-path LD_LIBRARY_PATH /softs/llvm-14/lib
prepend-path LIBRARY_PATH /softs/llvm-14/lib
prepend-path MANPATH /softs/llvm-14/share/man
prepend-path CPATH /softs/llvm-14/include