News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Multiple Compiler configurations in a single project?

Started by Conan Kudo, December 06, 2009, 10:48:23 PM

Previous topic - Next topic

Conan Kudo

Hello,

Is it possible to have a single project to support multiple compiler configurations for build targets?

Jenna

Quote from: Pharaoh Atem on December 06, 2009, 10:48:23 PM
Hello,

Is it possible to have a single project to support multiple compiler configurations for build targets?
Yes.
You can chose different compilers for each target.
Just right-click your project, click on build options and change the compiler on the target level.

I have cross-compiling targets with "normal" gcc for linux and i586mingw32-cross-compiler for windows builds, they all share the same (wxwidgets)-project, but have different target-specific settings (calls to wx-config, library search-paths etc.)

Conan Kudo

Quote from: jens on December 06, 2009, 11:00:06 PM
Quote from: Pharaoh Atem on December 06, 2009, 10:48:23 PM
Hello,

Is it possible to have a single project to support multiple compiler configurations for build targets?
Yes.
You can chose different compilers for each target.
Just right-click your project, click on build options and change the compiler on the target level.

I have cross-compiling targets with "normal" gcc for linux and i586mingw32-cross-compiler for windows builds, they all share the same (wxwidgets)-project, but have different target-specific settings (calls to wx-config, library search-paths etc.)

That's still technically the same compiler. I'm talking about gcc, msvc, and openwatcom configurations.

MortenMacFly

Quote from: Pharaoh Atem on December 07, 2009, 01:22:18 AM
That's still technically the same compiler. I'm talking about gcc, msvc, and openwatcom configurations.
Yes, I am doing it. Just try as Jens said.

BTW: There is no difference whether it's a "same" compiler or not. Why should be??? :shock:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]