[Barrelfish-users] CC variable
troscoe at inf.ethz.ch
Fri Aug 26 11:07:17 CEST 2011
We made an early decision to bury the binding of the C compiler fairly
deep down in Hake's architecture abstractions. If there really is a
pressing need to specify the C compiler differently for different
modules in the same build architecture, we would need to add the
compiler name to the (ever-expanding) Opts record. This is doable, but
it's a bit of work.
One alternative is to explicitly compile the C files by writing
low-level Hake combinators in your Hakefile. Hake won't compile (or
calculate dependencies for) any C files which you don't explicitly hand
it, so you can treat any C file specially if you're prepared to forego
the convenience of the "build library" or "build application" functions.
This might be the easiest way forward for a small module (how big is
This does require a bit more understanding of how Hake works, but most
of what you need should be in the Technical Note.
Hope this helps a bit...
On 08/26/2011 10:19 AM, Georgios Varisteas wrote:
> Hi Simon,
> Thanks for the quick reply. Setting the compiler in ./hake/ anywhere would be "too" permanent. What I would prefer is to use a custom compiler just for one module. Ideally there would be a CC-equivalent option in the hakefile. Could I try and add such a feature in hake?
> I can always have the compiler to be a wrapper script that invokes the correct compiler according to arguments (default being gcc). But this is a hassle for portability since I wont be able to have a variable for default_compiler to be passed to the wrapper script.
> From: Simon Peter [speter at inf.ethz.ch]
> Sent: Friday, August 26, 2011 10:03
> To: Georgios Varisteas
> Cc: barrelfish-users at lists.inf.ethz.ch
> Subject: Re: [Barrelfish-users] CC variable
> Hi Georgios,
> We don't really do this, but it's probably to set the compiler variable
> in hake/X86_64.hs (for example) to something else.
> Hope this helps,
> On 26.08.2011 09:58, Georgios Varisteas wrote:
>> What's the best way to setup hake to use a different compiler for a specific module?
>> Best regards,
>> Georgios Varisteas
>> Barrelfish-users mailing list
>> Barrelfish-users at lists.inf.ethz.ch
> Barrelfish-users mailing list
> Barrelfish-users at lists.inf.ethz.ch
More information about the Barrelfish-users