Menu

#808 Select first valid compiler as default

Undefined
open
nobody
None
Bug_Report
2021-08-10
2019-03-09
bluehazzard
No

In the forum were reports about invalid default compiler.
There was a valid gcc compiler and an invalid intel compiler. The intel compiler was selected as default and the invalid compiler warning poped up.
The default compiler should always be a valid compiler.
Expected behaviour: If the default compiler is invalid, go trought the compiler list and select the first valid compiler.

Discussion

  • Andrew Cottrell

    Andrew Cottrell - 2021-06-26

    I think that on the first time CB is executed the "Compiler auto detection" dialog that is displayed should default to the first detected compiler.
    On Windows 10 with Cygwin and MSYS (mingw64) installed the dialog shows:
    1) Only the Cygwin is detected
    2) The "GNU GCC compiler" compiler is "Not Found"
    3) BUT the default is "GNU GCC compiler", which is crazy

    If CB is changed to default on the first time it is executed then it should fix the issues with noobs.

    Changing the compiler after this to correct a compiler setup or config could cause more problems than it fixes. For example if you load a project that was setup for Cygwin on Linux and you have configured the default compiler to be the second or sub sequence compiler i the list then you do not want CB to update the project to use the first compiler. It is better to leave the project with an invalid compiler and let the dev fix it manually.

     
  • Andrew Cottrell

    Andrew Cottrell - 2021-08-10

    The changes that I have done for ticket 1117 may resolve this w.r.t. not allowing the end user to select an invalid compiler.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.