cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cons 2.3.0 bug?


From: Gary Oberbrunner
Subject: Cons 2.3.0 bug?
Date: Mon, 30 Jul 2001 18:13:51 -0400

I seem to have discovered a bug in Cons in multi-target commands.
I've enclosed a Construct which works properly the first time, but if you
change 'hello' to 'goodbye' in the Conscript it rebuilds a.c, b.h, and c.h,
but then stops -- it doesn't rebuild a.exe.

The way this script is SUPPOSED to work is that the first Command generates
a script foo.bat, which, when run, will generate some source code.  The
second Command uses foo.bat to generate a.c, and also does some other stuff.
This is the Command with the bug.  The final Program uses the generated a.c
to make a (or a.exe on Win32).

To repro: run the Construct, then change 'hello' to 'goodbye' and re-run it.
It'll re-generate a.c, but won't rebuild a (or a.exe).

I've enclosed two versions of the Construct, one for Win32, and one for
Unix.  It behaves the same on either platform, I just want to make it easy
to repro.

Any hints on why this is happening?  It seems to happen whenever the target
is an array reference, whether or not there's a second item in the array.
I'm stumped.

. . . . . . . . . . . . . . . . . . . . . . . . .
Gary Oberbrunner                address@hidden
GenArts, Inc.                   Tel: 617-492-2888
8 Clinton Street                Fax: 617-492-2852
Cambridge, MA 02139 USA         http://web.genarts.com

Attachment: Construct
Description: Binary data

Attachment: Construct.w32
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]