[cfe-commits] [PATCH] Add android triple to GCC Installation Detector

Logan Chien tzuhsiang.chien at gmail.com
Tue Sep 11 22:33:10 PDT 2012


Dear all,

  There's the rebased new patch to follow the test input change.
Every code remained unchanged.  Please have a look.  Thanks.

Logan

FYI.
https://github.com/loganchien/clang-logan/commit/058214185f98390a19cf744a654ec0b584e1f300

On Wed, Aug 29, 2012 at 5:46 PM, Logan Chien <tzuhsiang.chien at gmail.com>wrote:

> Thanks for your comments.  Here's the new patch.  The test cases is
> included
> now.
>
> However, IMHO, this new test case is not very reliable.  The
> GCCInstallationDetector
> will search for system root (i.e. /usr) for latest (newest) GCC, thus "-B"
> option may not
> be used if we have older GCC version in the test case.  Maybe we have to
> revise the
> "-B" implementation as well.
>
> Any further suggestion?  Thanks.
>
> Sincerely,
> Logan
>
>
> On Wed, Aug 29, 2012 at 3:23 PM, Chandler Carruth <chandlerc at google.com>wrote:
>
>> If you want to teach the Clang driver about the android toolchains,
>> you'll need to add some test cases for them. You can find the test case
>> strategy by looking at the tests for Linux and FreeBSD; I think they're
>> pretty comprehensive at this point.
>>
>>
>> On Wed, Aug 29, 2012 at 12:19 AM, Logan Chien <tzuhsiang.chien at gmail.com>wrote:
>>
>>> Hi,
>>>
>>>   Currently, the GCCInstallationDetector is not looking for
>>> mipsel-linux-android and
>>> i686-linux-android.  As the result, the clang driver can't use Android
>>> Mips/X86 toolchain
>>> even if -B is specified.  I hope this patch can solve this issue.
>>> Please review.  Thanks.
>>>
>>> Sincerely,
>>> Logan
>>>
>>> _______________________________________________
>>> cfe-commits mailing list
>>> cfe-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120912/ca8f490e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-Android-triple-for-X86-Mips-GCC-detection.patch
Type: application/octet-stream
Size: 11486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120912/ca8f490e/attachment.obj>


More information about the cfe-commits mailing list