[cfe-commits] r64416 - /cfe/trunk/tools/ccc/ccclib/Tools.py

Daniel Dunbar daniel at zuster.org
Fri Feb 13 09:50:57 PST 2009


On Fri, Feb 13, 2009 at 8:49 AM, Douglas Gregor <dgregor at apple.com> wrote:
>
> On Feb 12, 2009, at 11:37 PM, Daniel Dunbar wrote:
>
>> My intent was that clang's own tests would always use the clang
>> compiler binary, not the driver. The idea is that the driver is the
>> end-user tool, and as such should go as fast as possible. On the other
>> hand, for development and testing we get the alloc/free behavior so we
>> shake out bugs like you mentioned.
>
> Sure, but the real testing---the testing that we care about most---occurs
> when we use the driver. Say, when I take the clang that's in my path (always
> a debug version) and try to build some big application with it. Usually,
> ownership bugs are going to occur in larger translation units, which will
> occur within applications but not necessarily within our test-suite.

Understood. I don't see a particularly better alternative; tying to
NDEBUG strikes me as bad (although I can be strong armed I suppose).
The only other alternative would be to somehow do it for installed
versions but not for the driver being run out of the development tree;
similar to the way we strip binaries on installation. However, since
this is a much more significant functionality change, that strikes me
as another pretty bad idea.

> Besides, aren't we eventually going to merge the compiler binary and the
> driver into one executable?

Yawn. :)

 - Daniel



More information about the cfe-commits mailing list