[OE-core] [Patch v2] libsanitizer: Enable GCC sanitizers

Dan McGregor danismostlikely at gmail.com
Mon Sep 15 03:57:06 UTC 2014


On 14 September 2014 21:16, Dan McGregor <danismostlikely at gmail.com> wrote:
> On 14 September 2014 14:48, Burton, Ross <ross.burton at intel.com> wrote:
>> On 13 September 2014 04:06, Dan McGregor <danismostlikely at gmail.com> wrote:
>>> +python __anonymous () {
>>> +    arch = d.getVar("TRANSLATED_TARGET_ARCH", True)
>>> +    if arch not in { "i586", "i686", "x86_64", "arm" }:
>>> +        raise bb.parse.SkipPackage("libsanitizer only works on Intel and ARM.")
>>> +}
>>
>> Shouldn't this be something like
>> COMPATIBLE_HOST=(x86_64.*|i.86.*|arm.*)? (assuming it doesn't work on
>> aarch64, which isn't matched by arm.*)
>
> Probably, yes. I'll look into whether they work on aarch64 and update this part.
> In the mean time, this fixes Jonathan's issues with the last patch, so
> I think I'm
> at least heading in the right direction.
>

Even better! I've been ignoring the platform specific stuff in the
sanitizes. The only platform
that might give trouble is little-endian PowerPC. This entire clause
can be dropped. I'll test it
tomorrow on big-endian PPC to make sure this actually works.



More information about the Openembedded-core mailing list