Suppressing cmake's LLVM_ENABLE_PIC for the Xcode generator


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.

undef_llvm_enable_pic_for_xcode.patch.patch (571 Bytes)