Reputation: 95
For some reason the compile speed of LLVM is extremely slow on my Mac, and based on my observation most of the time is spend on compiling the different target in llvm/lib/Target.
However, the only target I need is X86, so I'm wondering is there a way to specify the target I want to compile so that the LLVM will only compile that target and save a lot of time?
Upvotes: 2
Views: 2641
Reputation: 37167
You can pass -DLLVM_TARGETS_TO_BUILD=X86
to the initial cmake
invocation.
Upvotes: 5