Re: adding text to compile line
Mats Wichmann <[email protected]> Fri, 2 Feb 2024 12:23:29 -0700
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
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: "