On Tue, Oct 20, 2009 at 2:30 AM, David Brownell <[email protected]> wrote:
> On Monday 19 October 2009, Øyvind Harboe wrote:
>> I'd like to see openocd forbidding build == src dir:
>
> Not I.  That's the *standard* build environment in almost
> all software projects!  The first one taught to apprentice
> programmers.  Doing anything else is unusual ... and is
> something which often is not supported.
>
>
>> - it creates extra test cases. We minimally need to support
>> build != src dir.
>
> Or we could forbid "build_dir != src_dir" if the number
> of test cases is too many ...

That would be bad. I can't then use the same source to test
building e.g. embedded & natively hosted using the
same source dir.

>> - there can be hard to track errors such as bin2char being
>> left in src/helper and subsequently trying to use build !=
>> src dir will fail.
>
> You mean build/src/helper or source/src/helper??

if you have a file in source/src/helper/bin2char, then
a subsequent build w/build_dir != src_dir will fail.

> Getting rid of "src" as a directory name would at least help
> get rid of that confusion.  (As if "tcl" isn't a kind of source
> code, and "doc" isn't source to the docs ...)

No particular opinion on that. Seems like an orthogonal problem.


-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to