User forums > Help
Different compilers per target in the same project
fabrizio.benedetti:
--- Quote from: MortenMacFly on July 10, 2008, 09:38:35 pm ---compiling a single file always chooses the default compiler which is good (and by design!).
--- End quote ---
Currently, C::B does not choose the default compiler when compiling a single file. It chooses the default compiler and initializes it, then it chooses the compiler from current build target (possibly uninitialized) and compiles the file --> exception thrown. Is this a bug or not?
--- Quote from: MortenMacFly on July 10, 2008, 09:38:35 pm --- In the end it's for quick tests anyways and not for "serious" programming.
--- End quote ---
OK, I don't practice serious programming, I'm just a paid programmer releasing commercial products. Incidentally, the beta testers testing my systems think the same about my "serious" programming :?. Nonetheless, I'd like C::B to meet my needs, and I use "build file" commands every day. I write a bunch of code, then I want to ensure it compiles good on every compiler I target: I don't want to build all my targets for that, I just want to check those lines before I go on. My projects have thousands of source files and final link takes >5 minutes per target: I don't want to spend 20 minutes just to quick test on every compiler that fresh code in that single file!
--- Quote from: killerbot on July 10, 2008, 10:46:22 pm ---no project --> no project compiler.
--- End quote ---
Why no project? I am compiling 1 single file, but I have a workspace open, with many projects in it, and a build target selected, and I am compiling one of the files added to one of the projects in my open workspace.
Cheers!
Fabrizio
MortenMacFly:
--- Quote from: fabrizio.benedetti on July 11, 2008, 01:09:31 am ---
--- Quote from: MortenMacFly on July 10, 2008, 09:38:35 pm --- In the end it's for quick tests anyways and not for "serious" programming.
--- End quote ---
OK, I don't practice serious programming, I'm just a paid programmer releasing commercial products.
--- End quote ---
You realised the quotation marks, right? There is no need to start offending. I had in mind to clarify things. If that is not needed/wanted I can just shut up.
killerbot:
--- Quote from: fabrizio.benedetti on July 11, 2008, 01:09:31 am ---
--- Quote from: killerbot on July 10, 2008, 10:46:22 pm ---no project --> no project compiler.
--- End quote ---
Why no project? I am compiling 1 single file, but I have a workspace open, with many projects in it, and a build target selected, and I am compiling one of the files added to one of the projects in my open workspace.
Cheers!
Fabrizio
--- End quote ---
Ok, that's another story then. In the single file compile command I think CB should check if the file is part ofthe active (??) project and apply that project/target's settings [project/target compiler with the project/target build options with specific options specified for the file (if any)].
fabrizio.benedetti:
--- Quote from: killerbot on July 11, 2008, 07:21:49 am ---Ok, that's another story then. In the single file compile command I think CB should check if the file is part ofthe active (??) project and apply that project/target's settings [project/target compiler with the project/target build options with specific options specified for the file (if any)].
--- End quote ---
Does it really need that check? After all, the command "Build file" is there, and seems to me that it can only be invoked on one of the files from one of the projects in the current workspace, not on a random file from the filesystem. I might be wrong, but shouldn't C::B then apply the settings of the current buildtarget for the project in which the file to be compiled is inserted?
And please, don't forget there is a condition where an unhandled exception is thrown...
Ciao
Fabrizio
matioupi:
Hello,
from my user point of view, it would be more natural that the target compiler would be selected when using the compile file command...
If other people have other needs... does it means that it should be a settable behaviour ?
Regards,
Mathieu
--
http://www.incub.net/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version