Re: [commit] cc-with-index.sh

Doug Evans
2010-10-05T20:01:36Z

On Tue, Oct 5, 2010 at 12:17 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> On Mon, Oct 04, 2010 at 09:28:27PM -0700, Doug Evans wrote:
>> I need a way to run the testsuite with index files,
>> so I wrote this script to help.
>>
>> Tom, feel free to replace it with something else.
>>
>> 2010-10-04  Doug Evans  <dje@google.com>
>>
>>       * cc-with-index.sh: New file.
>
> Wouldn't it be easier to do this in gdb_compile?  There you've got
> most of the information your script has to steal from the command
> line.

Sure, one *could* do it that way, and it does solve the problem of
knowing when one is doing a link.

But cc-with-index.sh gives me something I can trivially invoke by hand
too, even easier than gdb-add-index.sh.
And to run the testsuite with the index I'm going to have to pass some
extra parameter to runtest, and it feels more intuitive to provide a
special CC_WITH_TARGET.