Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Feature Request Adding A particular directory to search compilers directories

<< < (2/2)

billyonthemountain:

--- Quote from: oBFusCATed on July 01, 2010, 04:00:09 pm ---billyonthemountain: You propose that when C::B is started for the first time, it will do a search on the whole filesystem for known compilers?

--- End quote ---
No that would effectively be way too long. The idea is that the current compiler search directories (c:\mingw\bin, c:\mingw\mingw32\bin) might be extended with the following ones (when starting C::B for the 1st time or using the auto-detect feature) :

* {${PATH}|C:}\mingw{..|32}\{bin|mingw32\bin} -> Mingw targeting 32bit
* {${PATH}|C:}\mingw{..|64}\{bin|x86-64_mingw32\bin} -> Mingw targetting 64bit/MultilibWhere Codeblocks would look for the following executables :

* mingw32-{gcc|g++|make}.exe
* x86-64_mingw32-{gcc|g++|make}.exe
* {gdb|ar}.exeI'm using here a regular expression-like to keep it short; hope it's clear (".." : nothing, "|": OR)...[/list]

billyonthemountain:

--- Quote from: jens on July 01, 2010, 05:35:53 pm ---And you can have multiple versions of MinGW in parallel, which one to use in this case ?

--- End quote ---

Of course this is just a general idea. To keep it simple you could just stop searching as soon as there is a hit but a more "advanced" idea would be having C::B detect those multiple and use a template to add a compiler by detecting it's target.
This could be interesting when you use two different compilers to target 32bit and 64bit...

Hadomunt:

--- Quote from: oBFusCATed on June 30, 2010, 09:36:04 pm ---Why?
This is not the standard location or the mingw installation.
The detection is made, so 99% of the people have no problem with the installation/setup of CB and mingw,
and you are in the 1% of people that install custom compilers and you're supposed to know how to setup it.

--- End quote ---

Actually the path is the standard path for the QT SDK with Mingw integrated.
Was installed this way because NetBeans howto's said something about how to do it that way.
Anyway, this is NOT some niche, my-own-directory-structure thing.
Probably a lot of people have Qt SDK installed with it's own Mingw.

I'm asking this because Code::Blocks did NOT DETECTED the mingw compiler from the Qt SDK.
After installing QT SDK with sTANDARD DIRECTORY STRUCTURE!

Adding a few likely directory's won't hurt.

About the search everything.
Let there be an option to specify a directory and let C::B search in that directory and all subdirectories.
This way If you aren't completely sure where it is you can use an upper directory.

Multiple versions, C::B could present a list and choose the most recent one, or alphabetically or matching architecture.

Navigation

[0] Message Index

[*] Previous page

Go to full version