On Mon, May 12, 2014 at 01:49:19PM -0700, Michael Shal wrote:
> ----- Original Message -----
> > From: "Joshua Cranmer 🐧" <[email protected]>
> > To: [email protected]
> > Sent: Monday, May 12, 2014 11:29:12 AM
> > Subject: Re: RFC: On making command lines knowable to moz.build
> > 
> > On 5/12/2014 9:51 AM, Michael Shal wrote:
> > > 2) Settle on a way to handle bug 930703
> > 
> > This *is* the proposal to handle bug 930703. :-)
> 
> Oh, ok - I missed that somehow! :)
> 
> Can you or glandium elaborate on the issues with the most recent patch there? 
> I may have missed some IRC discussion on it...
> 
> > 1. Start combining the global flags into a single GLOBAL_CFLAGS rule,
> > and make the logic for emitting this happen at configure-time, not in
> > config.mk. I kind of prefer doing this in moz.build somehow since python
> > is a far easier language to do logic in than Makefile or m4-augmented
> > shell-script, but as long as this knowledge is easily communicable to
> > moz.build (e.g., via CONFIG), that should satisfy most use cases.
> 
> I tend to favor having the logic in python as well (as opposed to configure / 
> Makefiles) since we've already started to move in that direction for 
> moz.build. Personally I think configure should just output the list of 
> variables based on the user configuration (.mozconfig) and system-derived 
> attributes, and the logic should be handled outside of configure. Then we can 
> change the logic without having to re-run configure. IOW, right now we have 
> something like:
> 
> 1) build configuration: configure
> 2) build logic: split between configure, python/mozbuild/*, config/config.mk 
> and config/rules.mk
> 3) build frontend: split between Makefile.in and moz.build
> 
> I think it would be more cleanly separated as:
> 
> 1) build configuration: configure
> 2) build logic: python/mozbuild/*
> 3) build frontend: moz.build

First, there's a semantic problem. Things that you are obviously calling
build logic considering your first definition of what is build logic now
would, to me, fall into the build configuration bucket.

Second, I don't agree with things like global build flags being in python
code hidden in python/mozbuild/*, mainly because i think they would be
better placed at a global level in moz.build. Which we kind of have with
inherited variables, but not really. So at the moment, it's simpler to
put them in configure.

Mike
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to