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

Guy Sherman guy at guysherman.com
Fri Jul 4 01:25:09 PDT 2014


Hi Marcello,

That didn’t seem to solve my problem… My commands were almost the same as yours the first time anyway… I just left out -DCMAKE_BUILD_TYPE=Debug.

Anyhow, there was another email which suggested that I can probably leave out the compiler-rt stuff. I’m going to give that at try.

Thanks,

Guy.

On 4/07/2014, at 1:03 pm, Marcello Maggioni <mmaggioni at apple.com> wrote:

> Seems like my mail client had some problems  and sent too many messages, sorry about that :P
> 
> Marcello
> 
> On Jul 4, 2014, at 2:49 AM, Marcello Maggioni <mmaggioni at apple.com> wrote:
> 
>> Hi , 
>> 
>> knowing the exact commands would be good, but this usually works well for me:
>> 
>> mkdir llvm_build_xcode
>> cd llvm_build_xcode
>> cmake -G Xcode -DCMAKE_BUILD_TYPE=Debug /Path/To/llvm
>> open Xcode project and compile.
>> 
>> Let me know if it works for you
>> 
>> Marcello
>> 
>> On Jul 4, 2014, at 12:10 AM, 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
>> 
>> _______________________________________________
>> 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/20140704/65134a7c/attachment.html>


More information about the cfe-dev mailing list