Author Topic: How to make a build target to generate only gcc preprocessor output files  (Read 2249 times)

Offline hanshuckebein

  • Multiple posting newcomer
  • *
  • Posts: 36
I would like to have a build target, which only produces the output of the gcc preprocessor for each file. How to do this?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
You'll probably have to define a compiler which does just that.
Inspect Settings -> Compiler.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline hanshuckebein

  • Multiple posting newcomer
  • *
  • Posts: 36
I tried it, but didn't succeed. Is there some information on this topic available?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]