User forums > Using Code::Blocks
How to make a build target to generate only gcc preprocessor output files
(1/1)
hanshuckebein:
I would like to have a build target, which only produces the output of the gcc preprocessor for each file. How to do this?
oBFusCATed:
You'll probably have to define a compiler which does just that.
Inspect Settings -> Compiler.
hanshuckebein:
I tried it, but didn't succeed. Is there some information on this topic available?
oBFusCATed:
Not exactly.
We have this http://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
You have to modify an existing compiler. You have to make the compiler command do whatever you want and then make the linking command to do nothing...
Or you could just setup a tool to do it or write a script. http://wiki.codeblocks.org/index.php/Scripting_commands
Navigation
[0] Message Index
Go to full version