chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Small patch to pass optimization options to bo


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Small patch to pass optimization options to bootstrap builds
Date: Tue, 4 Feb 2014 20:17:31 +0100
User-agent: Mutt/1.4.2.3i

Hi all,

This is one of the set of patches Felix sent around X-mas.  It's really
simple and a bit hacky, so I wasn't sure about it, but here it is anyway.

This explicitly adds C_COMPILER_OPTIMIZATION_OPTIONS to the recursive
Make invocations when building a bootstrap chicken.  The reason to add
this is that sometimes a user will want to pass specific special commands
to the C compiler, and currently the only way to do that (for a normal
build) without at the same time overwriting any other *useful* options is
to set C_COMPILER_OPTIMIZATION_OPTIONS.

We could introduce *yet* another Make variable, but I'm already getting
headaches from the number of flags we currently support.  Constructive(!)
suggestions (and better, patches) on how to improve this situation are
welcome.

Actually, even if we did add other variables, I think it might be
desirable to pass the optimization options to the C compiler even for
bootstrap builds; after all, the function of a bootstrap compiler is
(correct me if I'm wrong) to reduce coupling between the current
particular CHICKEN version and the one being built, to increase the
number of versions that you can build with.  In other words, the
C compiler is a constant, and any optimization flags you pass can
be assumed to "just work", since you want the main CHICKEN to be
built with these flags as well.

Cheers,
Peter
-- 
http://www.more-magic.net

Attachment: 0001-Use-C_COMPILER_OPTIMIZATION_OPTIONS-also-when-buildi.patch
Description: Text document


reply via email to

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