M1 Mac support?

290 views
Skip to first unread message

krsk...@gmail.com

unread,
Apr 29, 2021, 6:39:00 PM4/29/21
to okapi-devel
Apple ditched Intel and switching to Arm M1.
On the newer Mac,  the code like:

if ( osName.contains("OS X") ) { // Macintosh case
 if ( System.getProperty("os.arch").equals("x86_64") || System.getProperty("os.arch").equals("amd64")) {
  distDir = "dist_cocoa-macosx-x86_64";
 } else {
  distDir = "dist_cocoa-macosx";
 }...


wouldn't work. 

says Java's os.arch would return "aarch64". What's our plan? Are we going to make dist_cocoa-macosx-aarch64 ?

But does Okapi actually have any processor architecture dependency? Isn't it pure Java ?
Can't we just drop "-x86_64" part from the directory name?

Kuro



Chase Tingley

unread,
Apr 29, 2021, 7:49:30 PM4/29/21
to okapi...@googlegroups.com
I believe the actual platform dependency is because of the SWT jars for the desktop UIs.  

It looks like this is under development: https://bugs.eclipse.org/bugs/show_bug.cgi?id=565690

(Also, I think the later comments in that make it look like the platform name will be 'arm64')

--
You received this message because you are subscribed to the Google Groups "okapi-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to okapi-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/okapi-devel/936508ba-3506-4076-85eb-f066a484b8een%40googlegroups.com.

jim

unread,
Apr 30, 2021, 1:47:39 PM4/30/21
to okapi...@googlegroups.com, Chase Tingley
Early access for new SWT libs are now available.

When we do add arm64 we should drop the 32 bit support.

I'm glad I saw this - was thinking of getting an M1 laptop.

Jim
Reply all
Reply to author
Forward
0 new messages