Author Topic: How do I change the default compiler for new projects  (Read 631 times)

Offline pabristow

  • Multiple posting newcomer
  • *
  • Posts: 62
How do I change the default compiler for new projects
« on: June 12, 2020, 11:14:09 am »
I have several versions of GCC  (and Clang), adding new ones as they are released.

When I start a project, the oldest GCC version is the default.

How can I change my configuration so that the latest one is the first option?

(I generate lots of tiny test projects so choosing the newest each time becomes tiresome).

I am willing (foolish enough?  ;D) to edit default.conf if necessary but can't see where the default is set.

   <DEFAULT_COMPILER>
     <str>
       <![CDATA[gcc]]>
     </str>
   </DEFAULT_COMPILER>

looks promising, but doesn't specify a GCC version like  <![CDATA[GNU GCC 9.3.1]]>

Is the *order* of GCC versions significant?

Thanks for any clues...

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 572
Re: How do I change the default compiler for new projects
« Reply #1 on: June 12, 2020, 12:04:37 pm »
In Settings -> Compiler you have a button labeled "Set as default", select the latest compiler and make it default.

Offline pabristow

  • Multiple posting newcomer
  • *
  • Posts: 62
Re: How do I change the default compiler for new projects
« Reply #2 on: June 13, 2020, 10:32:25 am »
I don't think that this does what I want

It carries an ominous second warning "Do you really want to reset defaults."

I don't want to reset - I want to SET the default compiler.  And keep all its current settings.

Please can someone confirm that this is really what I want to do.

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 572
Re: How do I change the default compiler for new projects
« Reply #3 on: June 13, 2020, 11:15:57 am »
You must use the "Set as default" button at the left side, not the "Reset defaults" at the right.

Offline pabristow

  • Multiple posting newcomer
  • *
  • Posts: 62
Re: How do I change the default compiler for new projects
« Reply #4 on: June 15, 2020, 10:35:27 am »
"You must use the "Set as default" button at the left side " 

Correct  ::)

Why didn't I spot that?  Need new specs? ;D  (Feeble Excuse - it was greyed out (referring to an obselete compiler).)

Thanks

And thanks too to the extra warning on the Reset defaults button, because you probably really don't want to do that!