Skip to content

Tiny changes needed for building with c++23 support#4013

Merged
rocallahan merged 5 commits intorr-debugger:masterfrom
theIDinside:feature-c++23-support
Aug 29, 2025
Merged

Tiny changes needed for building with c++23 support#4013
rocallahan merged 5 commits intorr-debugger:masterfrom
theIDinside:feature-c++23-support

Conversation

@theIDinside
Copy link
Copy Markdown
Contributor

I know > c++17 is not officially supported by rr, but these changes do not change behavior in any way, so I figured it'd be nice to make it possible to just drop rr into a c++23 setting and it building with no issues.

Also added some minor const thing.

Implicitly capturing this via default [=] has been deprecated. And I don't see why & isn't used in the first place, as we're not actually wanting to capture anything by value here.

https://en.cppreference.com/w/cpp/language/lambda.html#Lambda_capture#:~:text=The%20implicit%20capture%20of
@theIDinside theIDinside force-pushed the feature-c++23-support branch from d3499dc to c83e1e6 Compare August 29, 2025 13:37
Changes the CMake so that we can configure what c++ version we want to build with instead of hardcoding -std=c++17.

The part about turning off extensions, is because without it, rr is compiled with -std=gnu++17/20/23, instead of -std=c++17/... which would not match the previous hard coding.

If a user tries configuring with anything lower than c++17, it will fail at configuration time, instead of at build time.
@theIDinside theIDinside force-pushed the feature-c++23-support branch from c83e1e6 to 4c267c3 Compare August 29, 2025 13:59
@rocallahan rocallahan merged commit 80981f6 into rr-debugger:master Aug 29, 2025
5 checks passed
@rocallahan
Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants