> Since SCons is doing the $TARGET substitution, I'm not sure how I make this
> happen.
You'd have to use a function instead of a string. It's pretty easy:
def string(target, sources, env):
return "[XX] %s" % (str(target[0])[build_dir_offset:], )
> If you look at this all I'm doing is s/ Generating switch header/[GN]/g the
> verbosity of this hasn't really changed any.
I personally am not worried about the verbosity. I think that the
code should look the same as what you're doing with the other stuff.
> perhaps it would be better to have a MakeAction() function that buries the
> *getOutput code inside and just does something like:
> def MakeAction(func, string):
> if env['VERBOSE']:
> return Action(func)
> else:
> return Action(func, string)
>
> Maybe, but I'm 99% sure that that will change the signature of the build so
> verbose and non-verbose will rebuild everything.
Ok, then make MakeAction look like this:
def MakeAction(func, string):
return Action(func, *getOutput(string))
I'd be very, very surprised if they're any different though.
Nate
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev