Skip to content

Enables MSys2 MSYS environment to build SDL3#15514

Open
stahta01 wants to merge 6 commits intolibsdl-org:mainfrom
stahta01:msys_main_CI
Open

Enables MSys2 MSYS environment to build SDL3#15514
stahta01 wants to merge 6 commits intolibsdl-org:mainfrom
stahta01:msys_main_CI

Conversation

@stahta01
Copy link
Copy Markdown

@stahta01 stahta01 commented May 5, 2026

  • I confirm that I am the author of this code and release it to the SDL project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").
    This PR contains code from PR fix building on CYGWIN #15457

Description

This PR is based on the PR #15457.
The major difference is the PR enable MSYS to build SDL3.
The warning reduction changes are very different in header "SDL_platform_defines.h".
The method to get "d3d12.h" to work is very different.
This PR adds msys CI support and the tests runs; but about 5 tests fail.

Existing Issue(s)

Comment thread include/SDL3/SDL_stdinc.h Outdated
Comment thread src/dialog/windows/SDL_windowsdialog.c Outdated
Comment thread src/gpu/d3d12/SDL_gpu_d3d12.c Outdated
Comment thread src/video/directx/SDL_d3d12.h
Comment thread include/SDL3/SDL_egl.h Outdated
Comment thread include/SDL3/SDL_opengl.h Outdated
Comment thread include/SDL3/SDL_opengl.h Outdated
Comment thread include/SDL3/SDL_opengl.h Outdated
Comment thread include/SDL3/SDL_opengl_glext.h Outdated
Comment thread include/SDL3/SDL_platform_defines.h Outdated
@stahta01
Copy link
Copy Markdown
Author

stahta01 commented May 5, 2026

I decided that most of your rejections can be reduced down to using defined(SDL_PLATFORM_MSYS) when just defined(SDL_PLATFORM_CYGWIN) or defined(__CYGWIN__) would work better or just a well.

So, I am doing those changes and others you posted.

Tim S.

@stahta01 stahta01 force-pushed the msys_main_CI branch 7 times, most recently from f73c392 to 76fec34 Compare May 5, 2026 19:33
@stahta01 stahta01 closed this May 5, 2026
@stahta01 stahta01 reopened this May 5, 2026
@stahta01 stahta01 marked this pull request as ready for review May 5, 2026 19:57
@stahta01
Copy link
Copy Markdown
Author

stahta01 commented May 5, 2026

Doing many casts in C programming when it is not needed can be a way to hiding programming mistakes after future changes. And if is cleaner to use defines like I have is the correct thing to do! When I was asked to revert my changes in "SDL3/SDL_stdinc.h" and use casts instead I considered that to be a major programming ethical violation! So, either understand or get someone else to either approved or reject this PR. Because I also am finished with it.

stahta01 and others added 6 commits May 8, 2026 23:55
Co-authored-by: TrueCat17 <truecat17@gmail.com>
under Cygwin or MSYS build enviroments
Many ideas are likely from PR 15457

Co-authored-by: TrueCat17 <truecat17@gmail.com>
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

[sdl-ci-filter msys2-msys]
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