I’m using Hi-Tech C compiler and wish to use Scons to build my projects. The compiler executable is picc.exe. It has similar semantics as GCC, but not all.
I’ve set the default too as GCC and try to modify from there. The output from executing env.Program('main.c'):
picc -o main.o -c
However, in Hi-Tech C, the -o flag means output file, e.g. -Oc:\project\output\first
How do I append to -o, so that it will output to become:
picc -omain.o -c
So poking around in the “Tools” directory of the SCons install finds these definitions:
So perhaps all you need to do is override these elements in your env with versions that adjoin the -o and the $TARGET. I think you might need to place braces around the variables, so something like: