[cfe-dev] CMake/Xcode build fails trying to build asan

Kyle Sluder kyle at ksluder.com
Wed Feb 19 19:51:33 PST 2014


On Wed, Feb 19, 2014, at 10:44 AM, Brad King wrote:
> On 02/19/2014 12:34 PM, Kyle Sluder wrote:
> > It is quite common to have a single .xcodeproj that contains two
> > targets: one for iOS and one for Mac.
> 
> Okay, I misread the use case here.  The CMAKE_OSX_SYSROOT and
> CMAKE_OSX_ARCHITECTURES were created to support builds of OS X
> universal binaries where everything was still targeting the same
> set of platforms (with a single -isysroot for everything).

That's unfortunate. :(

> 
> CMake has no official support for mixed-platform builds so you will
> either have to hack the build rules or help improve CMake to
> support this.  There is already support for a per-binary list of
> architectures:
> 
>  http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:OSX_ARCHITECTURES
> 
> Something similar could be created for the other settings.

I'm interested in helping make this happen, but I have no idea what the
LLVM project's policies are regarding minimum CMake versions. Can
someone provide insight here?

--Kyle Sluder



More information about the cfe-dev mailing list