Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider enabling C++23 and C23 #3913

Open
CookiePLMonster opened this issue Sep 20, 2024 · 0 comments
Open

Consider enabling C++23 and C23 #3913

CookiePLMonster opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels
Build System & Scripts fbt, scripts and toolchain-related Feature Request New feature or user-story you wanna add to flipper

Comments

@CookiePLMonster
Copy link
Contributor

Describe the enhancement you're suggesting.

Currently, the C and C++ standard seems to be defined as follows:

  • FBT - -std=gnu2x for C, -std=c++20 for C++
  • uFBT - nothing? for C, -std=c++20 for C++
  • vscode config - gnu23 for C, c++20 for C++

Since GCC has partial support for C++23 since GCC11, please consider the following:

  1. Enable gnu23 for C in FBT and uFBT, or gnu2x if GCC 12 doesn't support gnu23 yet.
  2. Enable gnu++2b for C++ in FBT and uFBT. This gives us access to most C++23 features with GNU extensions. Or, if you don't want the GNU extensions, c++2b will do too.
  3. Enable gnu++23 in the vscode config, or c++23 if you don't want the GNU extensions.

Anything else?

No response

@hedger hedger self-assigned this Sep 20, 2024
@hedger hedger added Build System & Scripts fbt, scripts and toolchain-related Feature Request New feature or user-story you wanna add to flipper labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build System & Scripts fbt, scripts and toolchain-related Feature Request New feature or user-story you wanna add to flipper
Projects
None yet
Development

No branches or pull requests

2 participants