chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Add debug build hint, register debugbuild


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] Add debug build hint, register debugbuild feature
Date: Mon, 13 Apr 2015 18:28:14 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Apr 13, 2015 at 12:23:28PM +0200, Christian Kellermann wrote:
> Hi,
> 
> maybe the following is useful to you as well. The small patch registers
> the debugbuild feature and also shows it in the banner used by csi. I am
> not sure whether this will have funny effects when cross compiling but
> I have not found issues so far in my daily usage (w/o cross
> compilation).
> 
> What do you think?

That will not work as intended, because DEBUGBUILD is a compile-time
option that can be used *after* translation to C (and hence can also be
supplied when building a fresh release CHICKEN from a tarball).

However, cond-expand must be done by the conversion from Scheme to C,
which requires a bootstrap compiler.

If you want to do this, it's better to provide it from a fudge factor,
which is handled in runtime.c.  See for example how the "64-bit" feature
is provided; it is also derived at C compilation time.

Cheers,
Peter

Attachment: signature.asc
Description: Digital signature


reply via email to

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