With llvm 13 installed from homebrew if I do ./llc -march=arm64 -mattr=help
in /usr/local/opt/llvm/bin
it 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@gmail.com>
To: Sebastian Shader <sebfumaster@aol.com>
Cc: pd-dev@lists.iem.at <pd-dev@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@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)

-seb

-----Original Message-----
From: Alexandre Torres Porres <porres@gmail.com>
To: Pd-List <pd-list@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@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list