preprocessor name
Wei Qin
wqin@EE.Princeton.EDU
Mon Mar 25 07:04:00 GMT 2002
Hi,
I am writing a shell script to obtain information of gcc's
preprocessor. I can obtain the path by getting the dirname of
gcc -print-libgcc-file-name
But I have trouble figuring out the cpp name. For gcc2.95, it is
cpp, for 3.0, it is cpp0. I am not sure if it is going to change in the
future. Is there a simple way to get the command name without assuming
the 2 possibilities?
thanks in advance.
Wei
More information about the Gcc-help
mailing list