[PATCH][Solaris] Clang/Driver, stop hardcoding GCC paths in crt/ld.so lookup

Yaron Keren yaron.keren at gmail.com
Tue Jul 28 03:55:23 PDT 2015


+cfe-commits

This is a very large Solaris special case in ScanLibDirForGCCTriple which
shares almost no code with the function.
How about splitting it out to a helper function or
making ScanLibDirForGCCTriple virtual and overriding on Solaris?






2015-07-28 13:17 GMT+03:00 Xan López <xan at igalia.com>:

> Hi,
>
> the lookup code for all crt (and ld.so) files in Solaris is hardcoded,
> it will only work in a ~2012-ish Solaris/x86 machine with a single GCC
> version.
>
> This patch refactors the code to use the GCC installation detector
> (modified so that it works in Solaris), and uses
> ToolChain::GetFilePath everywhere once it works.
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150728/10ec3a99/attachment.html>


More information about the cfe-commits mailing list