-
Notifications
You must be signed in to change notification settings - Fork 123
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
Cmake force c++ 17 #378
Cmake force c++ 17 #378
Conversation
@capital-G Do you recon I should merge this myself? The only way I could see this breaking was if someone was using an old compiler that didn't support C++17, but that is a requirement of supercollider so seems very unlikely. |
I think C++17 gives some interesting new features - as there are official statements that SC target C++17 but it was never enforced I think it is fair to do so now, because otherwise we can't use those features. |
What if someone wanted to compile sc3-plugins for an older version of supercollider? |
Didn't think of that... I'll add a flag that defaults to 17. |
They could use an older commit for compiling in this case since SC does officially target C++17 since over 3 years, see supercollider/supercollider@08ecfad I think it is currently hard enough to keep the the most recent platforms running (see the broken macOS pipeline and boost upgrade), maintaining older compilers just creates more overhead in the long run for which we don't have enough people to maintain.
I'd vote to actually enforce it and push through with it as it may signal that SC are still not fully committed to C++17, which is already a state of 3+ years. |
Didn't know that, it's quite a compelling, simple argument --- use the same version across SC and SCplugins. |
Ok, this makes sense to me. Could you please add this information to the README? |
Supercollider uses c++17, not 11.
3e814c3
to
23fb31a
Compare
Updated readme |
Are we fully in c++17 in SC yet? supercollider/supercollider#6246 (I've only skimmed through the issue, sorry if I'm missing something obvious) |
@dyfer boost isn't listed in the external libraries folder so that issue should be independent of this. |
Ah got it, thanks. |
SuperCollider uses c++17 in its code base, not 11 (or earlier), this change forces C++17 compliance.
https://scsynth.org/t/sc3plugins-keeps-failing-to-compile/9664