On Fri, Sep 30, 2016 at 8:33 AM, Kuba Brecka <[email protected]> wrote:

> Hi everyone,
>
> what is the reason for interceptors to *not* include system headers like
> pthread.h and time.h, and instead declare all the structures like
> “__sanitizer_tm” or “__sanitizer_pthread_attr_t”?  Why don’t we just
> include the system headers and use pthread_attr_t directly?
>

We tried this in the beginning and the portability nightmare was never
ending.
The way we have it now is terrible, yet still better than dealing with the
headers on all possible OSes.


>
> I’m asking because I’m trying to make a build configured with modules
> (LLVM_ENABLE_MODULES=1) work.  When modules are used, external functions
> must come from system headers and the declarations must match.
>
Just exclude sanitizer run-times form it :)

--kcc

>
> Thanks,
> Kuba
>
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to