[llvm-dev] [compiler-rt] Add iOS simulator link flag

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 13:04:27 PDT 2015


This does not sound right. -isysroot specified during linking should be passing through the sys root to the linker.

What is the error you’re seeing? It would also help if you can provide the clang++ invocation and the output of it when run with -v.

Also which version of OS X are you on and which version of Xcode are you using?

Thanks,
-Chris

> On Sep 22, 2015, at 12:34 PM, Alexey Samsonov <vonosmas at gmail.com> wrote:
> 
> +llvm-commits (correct list)
> 
> On Tue, Sep 22, 2015 at 12:32 PM, Alexey Samsonov <vonosmas at gmail.com <mailto:vonosmas at gmail.com>> wrote:
> Could you describe the build failures you see after applying this patch? I'll let Chris judge if adding -Wl,-syslibroot makes sense for iossim, or that problem should be solved differently.
> 
> On Tue, Sep 22, 2015 at 9:37 AM, Alex Wang via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> Hello all!
> 
> Just got a small patch I’d like to put up for review.
> 
> llvm with clang and compiler-rt have been consistently failing for me during
> the linking step for either the address or ub sanitizer for iOS simulator.
> 
> As far as I could tell, passing -isysroot to clang++ when linking does not
> also set the search root for ld. This patch addresses that issue.
> 
> Unfortunately, the build fails later on, so I can't say for sure whether
> this won't break anything else, or if it is required elsewhere. I'm also
> not sure if this is specific to my computer, but it persisted between a
> wipe + reinstall, so I'm hoping it isn't just me getting this.
> 
> Thanks,
> Alex
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
> 
> 
> 
> 
> -- 
> Alexey Samsonov
> vonosmas at gmail.com <mailto:vonosmas at gmail.com>
> 
> 
> -- 
> Alexey Samsonov
> vonosmas at gmail.com <mailto:vonosmas at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150922/e292a98d/attachment.html>


More information about the llvm-commits mailing list