I am building LLVM (along with a few other llvm-projects). And for selecting that I used -DLLVM_ENABLE_PROJECTS flag with semicolon-separated list of projects.
-DLLVM_ENABLE_PROJECTS