Skip to content

Fix msys2 clang64: move -std=gnu++17 from CFLAGS to CXXFLAGS - #8556

Merged
danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:msys2-cflags-fix
Sep 11, 2026
Merged

danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:msys2-cflags-fix

Conversation

@danoli3

@danoli3 danoli3 commented Sep 11, 2026

Copy link
Copy Markdown
Member

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.

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
danoli3 merged commit be4ba56 into openframeworks:master Sep 11, 2026
20 checks passed
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'.
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.

1 participant