Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: eranon on February 06, 2013, 07:44:53 pm

Title: Where to define resource compiler options for a specific target ?
Post by: eranon on February 06, 2013, 07:44:53 pm
Hello,

Switching from Win 7 32-bit to 64-bit, I've changed from TDM-GCC to TDM64-GCC compiler which is able to compile both 32-bit and 64-bit target.

For compiler and linker options, there're no problem since I can add the required one for every target (i.e. "-m32" for 32-bit and "-m64" for 64-bit), but how to do for the resource compiler (which needs "-F pe-i386" for 32-bit and "-F pe-x86-64" for 64-bit) ?

I can provide a custom command line for .rc files going through advanced global settings about GCC compiler, but it forces me to change it when I select a target for different architecture. So, is there a way to provide RCFLAGS at target level ?

--
EDIT : awaiting to find a smarter way (don't hesitate to tell me), I've just duplicated the "GNU GCC Compiler" to a "GNU GCC Compiler x64" in global settings. Same toolchain and the only one difference being the resource compiler options.