Skip to content

Assorted™️ macOS fixes - #55

Merged
allkern merged 3 commits into
allkern:iop-cachedfrom
yeah-its-gloria:iop-cached
Oct 7, 2026
Merged

allkern merged 3 commits into
allkern:iop-cachedfrom
yeah-its-gloria:iop-cached

Conversation

@yeah-its-gloria

Copy link
Copy Markdown
  • Sets CMAKE_OSX_ARCHITECTURES during GHA builds instead of within CMakeLists, so that debug builds only need to build for one platform
  • CMAKE_OSX_DEPLOYMENT_TARGET is now 12.0 to match Xcode 27's minimum requirements
  • CMP0177 is now explicitly set to NEW on versions 3.31 and newer, normalizing install paths correctly
  • The install script now uses fixup_bundle to find dylibs instead of searching by hand
  • Caches pip packages in GHA builds now

PS cmake drove me mad

Remove CMAKE_OSX_ARCHITECTURES from CMakeLists
Set CMP0177 to NEW

This upgrades the minimum deployment target for macOS to 12, allowing for builds on macOS 27.

CMAKE_OSX_ARCHITECTURES is no longer set in CMakeLists to default to the architecture of the system, which matches most developers' workflows.
It will still be set in GHA builds.

CMP0177's NEW behavior makes CMake normalize paths, fixing them if needed. This behavior is now set to NEW if the policy is available.
Add instructions for installing dependencies with Homebrew
@yeah-its-gloria

Copy link
Copy Markdown
Author

The bundle generation is currently broken, I'll fix it soon:tm:

@yeah-its-gloria

Copy link
Copy Markdown
Author

Should be done now. I've tried making the install script look less silly, but everything I tried would either break using --prefix or necessitate a proper (shell) script.

@allkern

allkern commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

I'll test builds today, changes look good, the only one I'm a bit wary of is the fixup_bundle one, I was using it some time ago before I introduced Vulkan, the moment I had to do anything with dylibs, fixup_bundle would screw up RPATHs and codesign.

@allkern
allkern merged commit fb861d5 into allkern:iop-cached Oct 7, 2026
5 checks passed
@yeah-its-gloria
yeah-its-gloria deleted the iop-cached branch October 9, 2026 23:06
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