Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-29 Thread Abdelrazak Younes
Bo Peng wrote: Please test. The patch itself is a great example of scons' flexibility. Note that clever use of this option will greatly reduce initial thinking time of scons since most of the directory will *not* even be scanned. It works perfectly Bo. :-) Abdel.

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-29 Thread Georg Baum
Abdelrazak Younes wrote: > It is not autotools but Gnu Make which allows to override any variable > defined in the makefiles, including CFLAGS and CXXFLAGS. Yes. It is useful in your case (adding debug symbols to selected object files), but even more useful if you want profiling info only for sel

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-29 Thread Abdelrazak Younes
Bo Peng wrote: > Abdel, > > I think I now understand what you mean: you want to use existing > libraries when CCFLAGS changes. Not only other libraries but also all the objects of the files that do not depend on the file I just modified. This is just an overriding of the CCFLAGS option. > mod

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Bo Peng
Abdel, I think I now understand what you mean: you want to use existing libraries when CCFLAGS changes. For example, suppose that you have built lyx with CCFLAGS='-g' and now you want CCFLAGS='-O2' but only rebuild the lyxbase or qt4 module, and using the rest of the -g modules to link. This fea

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Abdelrazak Younes
Bo Peng wrote: And the final linking is very slow with full debug... So I would be much grateful if could indicate me a way to do this without a full recompile. Maybe with an option to specify which files to compile? If you separate different builds, each of them should not need rebuild. I _k

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Bo Peng
And the final linking is very slow with full debug... So I would be much grateful if could indicate me a way to do this without a full recompile. Maybe with an option to specify which files to compile? If you separate different builds, each of them should not need rebuild. There is no way you ca

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Bo Peng wrote: I think you can do: scons CCFLAGS='-g' mode=debug scons CCFLAGS='-O3' mode=release scons CCFLAGS='others' build_dir=somethingelse I know, but I would prefer to minimize space on disk... And the final linking is very slow with full debug... So I would be

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Abdelrazak Younes
Bo Peng wrote: OK, I understand. > What are > the changed flags? -g instead of -O3 When I modify a file, I would like to compile only affected files with debug info. So I would like the equivalent of make CCFLAGS="-g". I think you can do: scons CCFLAGS='-g' mode=debug scons CCFLAGS='-O3' mode=

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Bo Peng
OK, I understand. > What are > the changed flags? -g instead of -O3 When I modify a file, I would like to compile only affected files with debug info. So I would like the equivalent of make CCFLAGS="-g". I think you can do: scons CCFLAGS='-g' mode=debug scons CCFLAGS='-O3' mode=release scons CC

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Abdelrazak Younes
Bo Peng wrote: When I change CCFLAGS everything is retested again and everything is recompiled. Could you change that behaviour please? But different CCFLAGS do generate different object files OK, I understand. What are the changed flags? -g instead of -O3 When I modify a file, I would l

Re: Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Bo Peng
When I change CCFLAGS everything is retested again and everything is recompiled. Could you change that behaviour please? But different CCFLAGS do generate different object files What are the changed flags? Bo

Feature request for Scons: no full recompile when CCFLAGS is changed

2006-05-28 Thread Abdelrazak Younes
Hello Bo, When I change CCFLAGS everything is retested again and everything is recompiled. Could you change that behaviour please? Thanks in advance, Abdel.