I'm trying to set up a complete build environment with SCons and I came across this problem:
My project can be compiled with two different compilers (c or cpp compilers) and the resulting object files linked with the same linker.
Because of this, I need to know how to split the compilation part from the linking part.
Also, there are cases when I only need the .o files so I want to avoid linking. 
Is this possible using the same environment ?
Create two Environments, one with each compiler, use where necessary.
Then use whichever Environment you need for linking object from either Environment.
How to compile with two different compilers using SCons?