C0deZ
C0deZ

Reputation: 95

How to compile LLVM with a specific target

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

Answers (1)

Ismail Badawi
Ismail Badawi

Reputation: 37167

You can pass -DLLVM_TARGETS_TO_BUILD=X86 to the initial cmake invocation.

Upvotes: 5

Related Questions