[x265] [PATCH] Fix mac build error when tests cmake option is enabled

Pradeep Ramachandran pradeep at multicorewareinc.com
Mon May 7 06:51:49 CEST 2018


On Fri, May 4, 2018 at 3:19 PM, Radhakrishnan Venugopal Rajaganesan <
radhakrishnan at multicorewareinc.com> wrote:

> Ping
>

Thanks - I seem to have missed this patch!
Pushed into stable now as default is frozen in lieu of an imminent release!


>
>
> On Wed, Apr 11, 2018 at 6:33 PM, <radhakrishnan at multicorewareinc.com>
> wrote:
>
>> # HG changeset patch
>> # User Radhakrishnan <radhakrishnan at multicorewareinc.com>
>> # Date 1523448034 -19800
>> #      Wed Apr 11 17:30:34 2018 +0530
>> # Node ID 151627fc09e0ff7905a35f8af50e5ad4371a6c02
>> # Parent  e1ed4d609b52a361e758a66f45e8c070dd245211
>> Fix mac build error when tests cmake option is enabled
>>
>> clang version 4 or higher has its own implementation of __rtdsc
>>
>> diff -r e1ed4d609b52 -r 151627fc09e0 source/test/testharness.h
>> --- a/source/test/testharness.h Tue Apr 03 13:49:25 2018 +0530
>> +++ b/source/test/testharness.h Wed Apr 11 17:30:34 2018 +0530
>> @@ -72,7 +72,7 @@
>>  #include <x86intrin.h>
>>  #elif ( !defined(__APPLE__) && defined (__GNUC__) &&
>> defined(__ARM_NEON__))
>>  #include <arm_neon.h>
>> -#elif defined(__GNUC__)
>> +#elif defined(__GNUC__) && (!defined(__clang__) || __clang_major__ < 4)
>>  /* fallback for older GCC/MinGW */
>>  static inline uint32_t __rdtsc(void)
>>  {
>>
>
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180507/6c547148/attachment.html>


More information about the x265-devel mailing list