Add spec aarch64-apple-darwin9 (Apple Silicon) #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds specs for Apple Silicon, finally making it possible to run Sketch on newer macs (see related links below). Also, tested on a MacBook Air M2 and it all seems to be working just fine.
Steps to regenerate the specs (I used nix)
First off, force quicklisp to use a version of cl-sdl2 which supports Apple Silicon (e.g., you can clone my fork into ~/quicklisp/local-projects, or wherever your quicklisp installation lives). Note: you won't need this step anymore once changes are merged upstream (see: lispgames/cl-sdl2#167).
Next, drop the following lines in a file named shell.nix at the root of the repository, and then, in the same directory, run
nix-shell
(this will take care of installing SDL2_ttf and c2ffi).shell.nix
Remove the already existing specs (autowrap will try to generate the spec files only if missing):
Load :SDL2-TTF (this will get autowrap to generate the various spec files:
Related issues
PS. autowrap file seems to refer to the header file by its wrong name, so I went on and renamed that to match what was used. Let me know if you instead preferred me to create a separate PR for that.