Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
How to make a build target to generate only gcc preprocessor output files
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: How to make a build target to generate only gcc preprocessor output files (Read 5521 times)
hanshuckebein
Multiple posting newcomer
Posts: 36
How to make a build target to generate only gcc preprocessor output files
«
on:
January 09, 2021, 05:55:39 pm »
I would like to have a build target, which only produces the output of the gcc preprocessor for each file. How to do this?
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: How to make a build target to generate only gcc preprocessor output files
«
Reply #1 on:
January 09, 2021, 07:01:10 pm »
You'll probably have to define a compiler which does just that.
Inspect Settings -> Compiler.
Logged
(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!]
hanshuckebein
Multiple posting newcomer
Posts: 36
Re: How to make a build target to generate only gcc preprocessor output files
«
Reply #2 on:
January 09, 2021, 07:13:25 pm »
I tried it, but didn't succeed. Is there some information on this topic available?
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: How to make a build target to generate only gcc preprocessor output files
«
Reply #3 on:
January 10, 2021, 01:47:46 am »
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
Logged
(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!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
How to make a build target to generate only gcc preprocessor output files