[Scons-users] adding text to compile line

Mats Wichmann mats at wichmann.us
Fri Feb 2 14:23:29 EST 2024


On 2/2/24 12:19, daggs via Scons-users wrote:
> question,
> 
> the example you've provided uses hardcoded prefix, is there a way to make that
> prefix provided into the func somehow?

a construction variable ought to explandable there... this is just off 
the top of my head

return env.subst("$CMD_PREFIX") + 
SCons.Action._string_from_cmd_list(cmd_list[0])

and then in the appropriate place in a given environment,

env['CMD_PREFIX'] = "THIS: "




More information about the Scons-users mailing list