[Scons-users] Bug? Docs: 9.2. Controlling How SCons Prints Build Commands

Dirk Bächle tshortik at gmx.de
Sat Jul 16 17:03:01 EDT 2016


Hi Ivan,

On 16.07.2016 19:54, Ivan Kravets wrote:
> Hi,
>
> Could someone explain me how to achieve the results described in the docs?
>
>> [...]
>>
> In my case, "env['CCCOMSTR'] = "Compiling $TARGET"" prints "Compiling foo.o" and "cc -o foo.o -c foo.c".
>

here's my try:

cat foo.c
=========

int main(void)
{
   return 0;

}

cat SConstruct
==============

env = Environment()
env['CCCOMSTR'] = "Compiling $TARGET"

env.Program('foo', 'foo.c')


, which yields

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Compiling foo.o
gcc -o foo foo.o
scons: done building targets.



as expected. This works with SCons v2.3.0, as well as with a quite recent version from "trunk".
So I'm currently not able to reproduce your error on my side.

Best regards,

Dirk



More information about the Scons-users mailing list