Fix msys2 clang64: move -std=gnu++17 from CFLAGS to CXXFLAGS - #8556
Merged
Merged
Conversation
C files (e.g. ofxKinect libfreenect audio.c) fail with clang 15+ when -std=gnu++17 is passed via PLATFORM_CFLAGS -> CC. Move the C++ standard to PLATFORM_CXXFLAGS so CC only gets -DUNICODE and C++ gets the standard.
danoli3
added a commit
to danoli3/openFrameworks
that referenced
this pull request
Sep 11, 2026
…nframeworks#8557 cameras.c) Same fix as openframeworks#8556, needed for gl-smoke-tests to pass clang64. C files (audio.c, cameras.c) fail with 'invalid argument -std=gnu++17 not allowed with C'.
danoli3
added a commit
that referenced
this pull request
Sep 12, 2026
* Add GL smoke tests with CI headless fixes - Add tests/gl/glRenderSmokeTest (desktop GLFW) with shared GLSmokeTestCore.h exercising indexed VBO, instanced draw, tessellated ofPath, FBO readback - Add tests/emscripten/glRenderSmokeTest and tests/ios/glRenderSmokeTest (symlinked core) - Fix GLES CI: keep CC as C under ccache (was CXX), skip foreign tests (android/ios/emscripten/tvOS) on desktop runners, run linux tests under xvfb when headless, skip GLFW smoke test if window never came up * Fix msys2 clang64: move -std=gnu++17 from CFLAGS to CXXFLAGS (fix #8557 cameras.c) Same fix as #8556, needed for gl-smoke-tests to pass clang64. C files (audio.c, cameras.c) fail with 'invalid argument -std=gnu++17 not allowed with C'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C files (e.g. ofxKinect libfreenect audio.c) fail with clang 15+ when -std=gnu++17 is passed via PLATFORM_CFLAGS -> CC.
Move the C++ standard to PLATFORM_CXXFLAGS so CC only gets -DUNICODE and C++ gets the standard.
Fixes clang64 error: invalid argument '-std=gnu++17' not allowed with 'C' (seen on 8533 60ca033).
Split from #8533 OpenGLES 3.1 to land independently.