Skip to content

feat: add support for macOS Apple Silicon (aarch64)#1

Merged
hjohn merged 2 commits intoint4-org:masterfrom
sk8erboi17:feat/macos-aarch64-support
Feb 9, 2026
Merged

feat: add support for macOS Apple Silicon (aarch64)#1
hjohn merged 2 commits intoint4-org:masterfrom
sk8erboi17:feat/macos-aarch64-support

Conversation

@sk8erboi17
Copy link
Contributor

This PR enables support for Apple Silicon and updates the build configuration for Java 21.

Changes:

  • SCSSCompiler.java: Updated platform detection to handle macos-aarch64.
  • pom.xml (Parent): Upgraded Maven plugins (compiler, javadoc, surefire, etc.)
  • .gitignore: Added .idea/ to prevent tracking of local IDE settings.

@hjohn
Copy link
Member

hjohn commented Feb 7, 2026

What was the problem you encountered? It should already work for macos-arm64 ; your fix changes the platform names, but if you do that, they won't match the SCSS binary files included with this project.

@sk8erboi17 sk8erboi17 force-pushed the feat/macos-aarch64-support branch from dd97070 to 1a4ea2a Compare February 8, 2026 00:09
@sk8erboi17
Copy link
Contributor Author

You're right, I see the naming mismatch now. The IllegalStateException I encountered was specifically for mac-aarch64. This happened because Java reports aarch64, but the binaries use the macos-arm64 naming convention you mentioned.

The project was throwing java.lang.IllegalStateException: Unsupported platform: mac-aarch64 on Apple Silicon because the aarch64 architecture was not being correctly mapped to the internal resources.

image

This is what your string platform returns:

image

I've reverted the changes to the Java source code. Instead, I handled the fix entirely within the pom.xml by aligning the resource filenames with the existing platform detection logic.

@sk8erboi17 sk8erboi17 changed the title feat: add support for macOS Apple Silicon (aarch64) and update maven plugins feat: add support for macOS Apple Silicon (aarch64) Feb 8, 2026
@hjohn
Copy link
Member

hjohn commented Feb 9, 2026

Thanks, if you could remove the snapshot change, I'll integrate it (the version is set automatically by the release process, no need to change pom versions).

@hjohn hjohn added the bug Something isn't working label Feb 9, 2026
@sk8erboi17 sk8erboi17 closed this Feb 9, 2026
@sk8erboi17 sk8erboi17 force-pushed the feat/macos-aarch64-support branch from 1a4ea2a to 839f1e0 Compare February 9, 2026 12:37
@sk8erboi17
Copy link
Contributor Author

Done!

@sk8erboi17 sk8erboi17 reopened this Feb 9, 2026
Copy link
Member

@hjohn hjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks very much!

@hjohn hjohn merged commit dec3509 into int4-org:master Feb 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants