Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Conan Kudo on December 06, 2009, 10:48:23 pm

Title: Multiple Compiler configurations in a single project?
Post by: Conan Kudo 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?
Title: Re: Multiple Compiler configurations in a single project?
Post by: Jenna on December 06, 2009, 11:00:06 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.)
Title: Re: Multiple Compiler configurations in a single project?
Post by: Conan Kudo on December 07, 2009, 01:22:18 am
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.
Title: Re: Multiple Compiler configurations in a single project?
Post by: MortenMacFly on December 07, 2009, 06:31:19 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: