User forums > General (but related to Code::Blocks)
Multiple Compiler configurations in a single project?
(1/1)
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?
--- End quote ---
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?
--- End quote ---
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.)
--- End quote ---
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.
--- End quote ---
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:
Navigation
[0] Message Index
Go to full version