<div><div dir="auto">Just edit the text file — it’s nothing magic.</div><br><div class="gmail_quote"><div>On Mon, Nov 20, 2017 at 12:54 AM Firouzeh Soleymani <<a href="mailto:firouzeh@soleymanimagham.net">firouzeh@soleymanimagham.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried what you said. I could run clangd in Xcode, but as you<br>
mentioned it's not possible to choose clang to run. It seems that<br>
Xcode doesn't see "clang-6.0" as an executable file. It assumes that<br>
".0" at the end of the filename is the extension, so it is a<br>
non-executable file. I removed ".0" from the name, then I could run<br>
it. I don't know if this will cause problems along the way. I<br>
haven't started to debug clang yet, but if I run into problems, I'll<br>
report it here. Thanks!<br>
<br>
Firouzeh<br>
<br>
<br>
On Sun, Nov 19, 2017 at 2:50 PM, Don Hinton <<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@gmail.com</a>> wrote:<br>
> I don't normally use Xcode -- prefer command line -- but thought this was<br>
> interesting so I looked into it.<br>
><br>
> Not sure what the problem is with polly, but instead generating for xcode,<br>
> try creating an External Build System project instead and point it to your<br>
> ninja or make build.<br>
><br>
> You can follow these instructions, but note that I was unable to select<br>
> clang in step 3, so I selected opt, then hand edited the <project>.xschema<br>
> file to use clang instead.<br>
><br>
> <a href="https://forums.developer.apple.com/thread/65025" rel="noreferrer" target="_blank">https://forums.developer.apple.com/thread/65025</a><br>
><br>
> hth...<br>
> don<br>
><br>
><br>
> On Sat, Nov 18, 2017 at 9:35 AM, Firouzeh Soleymani via cfe-dev<br>
> <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I'm trying to build clang and llvm using Xcode. I used the following<br>
>> command to generate the Xcode project:<br>
>><br>
>> cmake -G Xcode -DDCMAKE_INSTALL_PREFIX="path to my llvm install<br>
>> directory" "path to my llvm directory"<br>
>><br>
>> Then I opened LLVM.xcodeproj in Xcode, and chose "clang" as the only<br>
>> build scheme and hit the Build. I ran into this error:<br>
>> clang: error: no such file or directory: 'path to my build<br>
>> directory/lib/Debug/libPolly.a'.<br>
>><br>
>> /lib/Debug contains only one file - 'libPollyISL.a'. I got the same<br>
>> error when I tried building from the command line:<br>
>> clang: error: no such file or directory: 'my build<br>
>> directory/lib/Debug/libPolly.a'<br>
>> The following build commands failed: Ld<br>
>> /Users/Firouzeh/dev/llvmbuild/Debug/bin/opt normal x86_64<br>
>><br>
>> I'm trying Xcode build, because I want to debug clang in Xcode. I'd<br>
>> appreciate any help!<br>
>><br>
>> I'm using macOS 10.13.1, Xcode 9.1, Apple LLVM version 9.0.0<br>
>> (clang-900.0.38), and trunk revision 318585 of the source code.<br>
>><br>
>> Thanks!<br>
>> Firouzeh Soleymani<br>
>> _______________________________________________<br>
>> cfe-dev mailing list<br>
>> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
>> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
</blockquote></div></div>