[LLVMdev] RFC: How can AddressSanitizer, ThreadSanitizer, and similar runtime libraries leverage shared library code?

Chandler Carruth
Thu, 21 Jun 2012 08:52:42 -0000

On Thu, Jun 21, 2012 at 1:42 AM, Kostya Serebryany <kcc at google.com>
wrote:

> Can we alter the build system so that when building a run-time library it
> modifies all .cpp files like this:
>    namespace FOO {
>    <file body>
>    }
> This will give us essentially the same thing, but w/o system dependent
> object file hackery.
> Maybe we can add a Clang flag to add such a namespace for us?
>

I think this is essentially what Dmitry was talking about w/ past STLport
experience. It has lots of limitations:

- You can't use the normal system standard library
- You have to build the standard library from source
- You can't wrap certain parts of it (operator new, delete, a few other
things)
- You can't re-use any C libraries (zlib for example)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120621/7632a0d6/attachment.html>