Build clang for only one language and target

Hi.

Is that possible to build cland.exe and opt.exe with support for just c/c++ and x86/x64 as target?

To make it short, is there a way to get rid of powerpc/mips… targets and cuda/opencl… inputs in order to speed up build process?

Many thanks,

Regis

Something like
-DLLVM_TARGETS_TO_BUILD=X86

on your cmake command line will restrict the targets. The different flavours of C that clang supports are runtime-decissions, and can’t be enabled/disabled with macros, afaict.

Cool. Thanks.
A lot