Better compiler argument warnings handling (#5076)

The goal of this PR is to display any warnings about compiler arguments,
e.g. the warning about -march=native, somewhere else instead of a toast
notification every time. Feature requested on discord.


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/40a0c670-b2bb-4fae-b98d-937dbeb7d2e6)

![Animation](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/43575608-daa6-487d-9ef9-ca04bdd38a38)

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/551e26e5-1e4f-4802-a68a-fb63e0e5e415)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
This commit is contained in:
Jeremy Rifkin
2023-05-30 22:18:09 -04:00
committed by GitHub
parent 0bc22f8883
commit edcacc0272
11 changed files with 169 additions and 25 deletions

View File

@@ -7,9 +7,9 @@
**Compiler Explorer** is an interactive compiler exploration website. Edit code in C, C++, C#, F#, Rust, Go, D, Haskell,
Swift, Pascal, [ispc](https://ispc.github.io/), Python, Java, or any of the other
[30+ supported languages](https://godbolt.org/api/languages), and see how that code looks after being compiled in
real time. Multiple compilers are supported for each language, many different tools and visualizations are available,
and the UI layout is configurable (thanks to [GoldenLayout](https://www.golden-layout.com/)).
[30+ supported languages](https://godbolt.org/api/languages), and see how that code looks after being compiled in real
time. Multiple compilers are supported for each language, many different tools and visualizations are available, and the
UI layout is configurable (thanks to [GoldenLayout](https://www.golden-layout.com/)).
Try out at [godbolt.org](https://godbolt.org), or [run your own local instance](#running-a-local-instance).
@@ -133,5 +133,5 @@ We would also like to specially thank these people for their contributions to **
- [Joshua Sheard](https://github.com/jsheard)
- [Andrew Pardoe](https://github.com/AndrewPardoe)
Many [amazing sponsors](https://godbolt.org/#sponsors), both individuals and companies, have helped fund and
promote Compiler Explorer.
Many [amazing sponsors](https://godbolt.org/#sponsors), both individuals and companies, have helped fund and promote
Compiler Explorer.