(done) setting the default compiler and optimization in ide

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

(done) setting the default compiler and optimization in ide

Post by nsstudios »

Considering we have the c back-end compiler now, and x86 and x64 editions, it would be very nice if we could set a specific compiler as default that would be used for most compilations.
E.g., if most of my compilations are done with the c back-end compiler, then I could set it as default and change it for the minority of projects that need the different one, or if having a separate compiler is just a temporary solution, then a case where I use 32 bit ide but use the 64 bit compiler for most projects.
It could be an addition to the defaults section of the preferences, and would make it a lot nicer than having to switch every new project to the prefered compiler and optimization setting.
Last edited by nsstudios on Thu Mar 10, 2022 1:58 am, edited 1 time in total.
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 223
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: setting the default compiler and optimization in ide

Post by DeanH »

+1
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: setting the default compiler and optimization in ide

Post by Bisonte »

+1
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
hoerbie
Enthusiast
Enthusiast
Posts: 119
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: setting the default compiler and optimization in ide

Post by hoerbie »

+1
Would be helpful when the C compile way is really long term stable, but also now for example to set it only on a different testing computer etc. without need to save it in every source.
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: setting the default compiler and optimization in ide

Post by freak »

I have created a PR with an implementation for this here: https://github.com/fantaisie-software/p ... c/pull/186
You can test it out and give feedback before it is merged if you want.
quidquid Latine dictum sit altum videtur
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: setting the default compiler and optimization in ide

Post by nsstudios »

Awesome! Thanks!
It looks good (I've checked out only the source because I have a hard time compiling it, but can't wait for it to be in one of the next versions!)
Post Reply