[llvm-commits] [PATCH] Fix cmake build without native target selected

Mike Gist Mike.Gist at imgtec.com
Thu Sep 2 08:12:07 PDT 2010


Hi,

 

The cmake (+ MSVC) build is broken if you don't select your native
target.

e.g. 'cmake -D LLVM_TARGETS_TO_BUILD="MyNonNativeTarget" .'

 

This is because cmake currently sets the LLVM_NATIVE_* definitions
regardless of whether the native target is selected (causing build
errors).

The attached patch fixes this problem by only setting them when the
native target is selected, which is consistent with the behaviour of
configure.

 

Regards,

 

Mike

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100902/0b7f97a7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-ix.patch
Type: application/octet-stream
Size: 983 bytes
Desc: config-ix.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100902/0b7f97a7/attachment.obj>


More information about the llvm-commits mailing list