Skip to content

test: old version builds#32

Closed
Akemi wants to merge 6 commits into
masterfrom
mac_old_ver_builds
Closed

test: old version builds#32
Akemi wants to merge 6 commits into
masterfrom
mac_old_ver_builds

Conversation

@Akemi
Copy link
Copy Markdown
Owner

@Akemi Akemi commented Sep 7, 2025

tests

using the oldest xcode toolchain will test some code paths that weren't
previously tested, eg older SDK and swift versions.
@Akemi
Copy link
Copy Markdown
Owner Author

Akemi commented Sep 7, 2025

command: fix type mismatch fixes https://github.com/Akemi/mpv/actions/runs/17528518682/job/49782276161?pr=32#step:7:449

osdep/mac/meson.build: fallback to swift build for old swift versions fixes https://github.com/Akemi/mpv/actions/runs/17528658752/job/49782581357?pr=32#step:7:553 see also mpv-player#15591 and mpv-player#15594

meson: properly add path-mac.c to path_source and don't overwrite it https://github.com/Akemi/mpv/actions/runs/17531954401/job/49790052456?pr=32#step:11:164

@Akemi Akemi force-pushed the mac_old_ver_builds branch 4 times, most recently from bec4c18 to 36c1674 Compare September 7, 2025 17:10
with commit 8d20b72 and PR mpv-player#15442 we switched to the recommended swiftc
compiler for building our swift code. this lead to some
incompatibilities with swift versions prior to 5.8, where a new linker
was introduced.

work around that problem by using the old swift frontend build for older
swift versions. this can be removed when we remove the support for those
old versions.

Fixes mpv-player#15591
currently we use the withLock function with NSCondition and NSLock,
which are not available on swift versions lower than 5.7. we only added
compatibility fallbacks for NSCondition though. introduced in 1364c80
and mpv-player#14334.

instead of only adding the fallback to a specific class add it to the
whole protocol all the locking classes use, similar to the actual
implementation.
UniformTypeIdentifiers is only available since macOS 11.
added in 6b0e4f7 and mpv-player#15859.

guard the allowedContentTypes UTType property of the NSOpenPanel and
add a dummy struct UTType and dummy allowedContentTypes property on
macOS versions that don't have those available.
@Akemi Akemi force-pushed the mac_old_ver_builds branch 2 times, most recently from 00424fe to 209cb94 Compare September 7, 2025 18:31
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 7, 2025

@Akemi Akemi force-pushed the mac_old_ver_builds branch 3 times, most recently from afce6e0 to 1f10595 Compare September 7, 2025 19:55
@Akemi Akemi force-pushed the mac_old_ver_builds branch from 1f10595 to 50670cc Compare September 7, 2025 20:41
@Akemi Akemi closed this Sep 7, 2025
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