[cfe-dev] Building LLVM and Clang with Xcode 5

Reid Kleckner rnk at google.com
Thu Jul 3 19:30:20 PDT 2014


If you just want to hack on clang, remove the compiler-rt and test-suite
checkouts.  Clang has tests in its source checkout that are small,
targeted, and run in ~1min.

The specific error you got has something to do with cross-compiling the
sanitizers for iOS from Mac OS, which I'm guessing you may not care about.
 Here's an old thread about it:
http://clang-developers.42468.n3.nabble.com/CMake-Xcode-build-fails-trying-to-build-asan-td4037916.html


On Thu, Jul 3, 2014 at 3:10 PM, Guy Sherman <guy at guysherman.com> wrote:

> Hi All,
>
> I’m new to hacking on clang and I’m trying to build with Xcode.
>
>
> I got the code from the git mirror, first checking out llvm, and then
> clang into llvm/tools/clang, compiler-rt code to llvm/project/compiler-rt
> and the test suite to llvm/projects/test-suite (I basically followed the
> instructions here: http://llvm.org/docs/GettingStarted.html#git-mirror)
>
> I then used cmake to generate the LLVM xcode project.
>
> When I build the ALL_BUILD target I very quickly get the following error
> compiling asan_activation.c:
>
> lang: error: invalid argument '-mmacosx-version-min=10.9' not allowed with
> '-mios-simulator-version-min=7.0'
>
> Any thoughts on what is going wrong? I am a little surprised because I
> haven’t even tried to change anything yet.
>
>
> Thanks,
>
> Guy.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140703/871ea67f/attachment.html>


More information about the cfe-dev mailing list