[LLVMdev] cmake and setting target triple
Óscar Fuentes
ofv at wanadoo.es
Tue Jul 10 07:44:28 PDT 2012
John Myers <atomicdog.jwm at gmail.com> writes:
> What is the Cmake equivalent to configures target option [ ./configure
> --target=avr-atmel-none] ?
In the cmake invocation from the command line set the variable
LLVM_DEFAULT_TARGET_TRIPLE like this:
-DLLVM_DEFAULT_TARGET_TRIPLE=avr-atmel-none
I'm not 100% sure it is right, though. That variable was not declared
nor documented.
OTOH, if you want to cross-compile, see
http://llvm.org/docs/CMake.html#cross-compiling
More information about the llvm-dev
mailing list