[LLVMdev] Suppressing cmake's LLVM_ENABLE_PIC for the Xcode generator
Ray Fix
rayfix.ml at gmail.com
Wed Sep 16 14:38:26 PDT 2009
Hi,
If you create an Xcode project with
cmake -G Xcode ~/llvm
and do a build, you end up with 68 warnings like this:
-mdynamic-no-pic overrides -fpic or -fPIC
This can be easily avoided doing:
cmake -G Xcode -ULLVM_ENABLE_PIC ~/llvm
But I think it would be nicer if it built warning-free with the
simpler form.
What do you think?
Ray
PS: CMake generated make style builds on Mac OS X don't use the -
mdynamic-no-pic, so I guess you want -fPIC enabled there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090916/1c0a639a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undef_llvm_enable_pic_for_xcode.patch.patch
Type: application/octet-stream
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090916/1c0a639a/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090916/1c0a639a/attachment-0001.html>
More information about the llvm-dev
mailing list