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
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.

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 nbuwe force-pushed the bugfix/macos-powerpc branch from 1b7d1a4 to c64838c Compare November 25, 2025 23:05
Fixes build on MacOSX/x86 (tested on ElCapitan with Xcode 6.4)
@nbuwe
Copy link
Contributor Author

nbuwe commented Dec 24, 2025

Added one piggyback commit to this PR to fix MacOSX/x86 build, so this PR should fully restore MacOSX support modulo cmake glitches.

@nbuwe nbuwe changed the title Fix build on MacOS X/PowerPC Fix build on MacOS X Dec 24, 2025
The 10.10 SDK still has full Quickdraw support.  Tested with Xcode 6.4
(that comes with 10.9 and 10.10 SDKs).

In 10.11 SDK and later the Quickdraw headers are just a hollow shell
and Self fails to compile its Quickdraw code.
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