Skip to content

Conversation

@nbuwe
Copy link
Contributor

@nbuwe nbuwe commented Nov 9, 2025

Tested on 10.5.8.

One missing change is that vm/cmake/mac_osx.cmake hardcodes i386. For the test I have hardcoded ppc instead:

set(CMAKE_OSX_ARCHITECTURES ppc ...)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.5" ...)
foreach(sdk "macosx10.5") ...

My cmake-fu is not up to doing it properly, help appreciated.

nbuwe added 6 commits November 7, 2025 09:22
Old MacOS X doesn't define the former in the 10.5 SDK.
Apple uses @ as the command separator and ; as the comment, so we have
to hide that behind a macro too, *sigh*.  Yes, technically "__" is a
reserved name, but we can get away with it and its not as ugly as
anything with alphanumerics in it.
Add unconditionally only the flags that MacOS X 10.5 gcc 4.2 accepts.
Add other flags (that said 4.2 does not accept) based on the compiler
version.  The versions were picked from inspecting the gcc docs and
should not be too wrong, hopefully.
Doesn't matter on case-insensitive macos, but keep things tidy.
@nbuwe
Copy link
Contributor Author

nbuwe commented Nov 9, 2025

1b7d1a4 should deal with automated architecture/sdk selection. Not tested on an actual Intel Mac since I don't have a Mojave image handy, but I tried to make sure the i386 branch should end up with the same values as the old hardcoded ones.

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