Setting default options for each compiler

33 views
Skip to first unread message

Robert Simpson

unread,
Jun 17, 2020, 6:15:27 AM6/17/20
to Compiler Explorer Discussion
Is there a way to avoid having to type e.g. /std:c++latest or -std=c++20 when switching between compilers? It would be useful to be able to set up default options for the compilers I'm using (mostly Clang trunk, gcc trunk and MSVC 2019). Actually what would be even better is to have a set of 'favourites'. The list of supported compilers is getting quite long (which is a good thing!) but it takes quite a while to find the one you want sometimes.

Rob.

Matt Godbolt

unread,
Jun 17, 2020, 10:09:10 AM6/17/20
to compiler-explo...@googlegroups.com
Hi Rob!

I'm afraid there isn't, though several of your ideas have been submitted before. One quick tip: after clicking the compiler drop down you can hit backspace and then search by name (I often type 'gcc trunk' for example).

Some ideas:
https://github.com/compiler-explorer/compiler-explorer/issues/1966 - where a special "latest" is suggested

Let me know what you think about those options, and any other suggestions you might have. Our main blocker is our ability to make the UI work well.

Thanks for your thoughts, Matt :)

On Wed, Jun 17, 2020 at 5:15 AM Robert Simpson <robert.sim...@gmail.com> wrote:
Is there a way to avoid having to type e.g. /std:c++latest or -std=c++20 when switching between compilers? It would be useful to be able to set up default options for the compilers I'm using (mostly Clang trunk, gcc trunk and MSVC 2019). Actually what would be even better is to have a set of 'favourites'. The list of supported compilers is getting quite long (which is a good thing!) but it takes quite a while to find the one you want sometimes.

Rob.

--
You received this message because you are subscribed to the Google Groups "Compiler Explorer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compiler-explorer-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/compiler-explorer-discussion/422df0d7-1178-4f95-b2e7-010ffaa1f846o%40googlegroups.com.


--
Matt

Robert Simpson

unread,
Jun 17, 2020, 7:51:47 PM6/17/20
to Compiler Explorer Discussion
Thanks Matt!

The search-by-name is certainly useful. The difficulty with the options is caused by the way MSVC is different from most other compilers. First you have to remember it's '/' not '-', then ':' not '-' and then 'c++latest' not 'c++20'. You have some options listed in the drop-down so could you perhaps add the language standard after the optimization flags?

Rob.

On Wednesday, June 17, 2020 at 3:09:10 PM UTC+1, Matt Godbolt wrote:
Hi Rob!

I'm afraid there isn't, though several of your ideas have been submitted before. One quick tip: after clicking the compiler drop down you can hit backspace and then search by name (I often type 'gcc trunk' for example).

Some ideas:
https://github.com/compiler-explorer/compiler-explorer/issues/1966 - where a special "latest" is suggested

Let me know what you think about those options, and any other suggestions you might have. Our main blocker is our ability to make the UI work well.

Thanks for your thoughts, Matt :)

On Wed, Jun 17, 2020 at 5:15 AM Robert Simpson <robert.si...@gmail.com> wrote:
Is there a way to avoid having to type e.g. /std:c++latest or -std=c++20 when switching between compilers? It would be useful to be able to set up default options for the compilers I'm using (mostly Clang trunk, gcc trunk and MSVC 2019). Actually what would be even better is to have a set of 'favourites'. The list of supported compilers is getting quite long (which is a good thing!) but it takes quite a while to find the one you want sometimes.

Rob.

--
You received this message because you are subscribed to the Google Groups "Compiler Explorer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compiler-explorer-discussion+unsub...@googlegroups.com.


--
Matt
Reply all
Reply to author
Forward
0 new messages