[PD-dev] [PD] how to compile externals for apple silicon?

Sebastian Shader sebfumaster at aol.com
Thu Mar 10 23:29:48 CET 2022


With llvm 13 installed from homebrew if I do ./llc -march=arm64 -mattr=helpin /usr/local/opt/llvm/binit does list "apple-m1" under "Available CPUs for this target" so it might be hypothetically possible to cross-compile..
But if you're looking for an easy solution it's probably to just install catalina and the latest supported Xcode/command line tools.
as for flags for pd-lib-builder I'm not sure, you might have to set the PLATFORM variable or something, someone else probably can say more.. but the 1st step is getting a toolchain that can build for m1 installed.
-seb
-----Original Message-----
From: Alexandre Torres Porres <porres at gmail.com>
To: Sebastian Shader <sebfumaster at aol.com>
Cc: pd-dev at lists.iem.at <pd-dev at lists.iem.at>
Sent: Thu, Mar 10, 2022 12:57 pm
Subject: Re: [PD] how to compile externals for apple silicon?

I guess I can install catalina on a partition, but I was hoping to use pdlibbuilder in an easy way, is it possible?
Em qui., 10 de mar. de 2022 às 17:33, Sebastian Shader <sebfumaster at aol.com> escreveu:

(replied to dev list, seems more appropriate)I think you can cross-compile for arm on intel if you have xcode 12.2 (which I believe requires MacOS 10.15 Catalina)https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary

-seb

-----Original Message-----
From: Alexandre Torres Porres <porres at gmail.com>
To: Pd-List <pd-list at lists.iem.at>
Sent: Thu, Mar 10, 2022 11:29 am
Subject: [PD] how to compile externals for apple silicon?

In my next update of my libraries I wanna see if I can provide externals for M1 macs.
I'm assuming I need an apple silicon computer for that, right? Since I don't, I'll ask for someone who has one to help me.
Now, what's the next step, is pdlibbuilder ready for apple silicon macs?
I see zexy is already provided for apple silicon by the way.
cheers _______________________________________________
Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20220310/a0503dc0/attachment-0001.htm>


More information about the Pd-dev mailing list