Fuck llvmenv. It's fucking old.
Download the llvm-project archive from LLVM Releases then extract it.
tar -xf ./llvm-project.tar.xz # the file namecd llvm-projectBe sure you have cc & ninja installed.
cmake -G Ninja -S ./llvm \
-B ./build-llvm \ # the build directory
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DBUILD_SHARED_LIBS=OFF \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DCMAKE_INSTALL_PREFIX=/opt/llvm # where to install
cmake \
--build ./build-llvm \ # the build directory
--target installThen son 😭 enjoy your fucking llvm