Page 1 of 1

How to enable -E PreprocessOnly?

Posted: Fri May 20, 2011 8:18 am
by Rinaldo
Using CodeLite 2.10.0.4798 with GNU GCC (arm-none-eabi-gcc).

What do I need to do in build settings to enable the PreprocessOnly switch? I see the switch available in Build Settings ->Compilers-> gnu gcc -> switches but I'm not sure how to actually enable it.

Thanks

Re: How to enable -E PreprocessOnly?

Posted: Fri May 20, 2011 11:18 pm
by eranif
It will work only for projects which are using codelite's generated makefiles.

How to use it? right click on the file you wish to pre-process and click it
You will see an output similar to this:

Code: Select all

C:\Windows\system32\cmd.exe /c ""mingw32-make"  -j 4 -f "TestExe.mk"  ./Debug/c.o.i"
Once the build is over, open the file './Debug/c.o.i' in the editor to see the output

Eran