Sjors / libwally-swift

Swift wrapper for LibWally, a collection of useful primitives for cryptocurrency wallets
MIT License
40 stars 18 forks source link

Build for aarch64-apple-darwin if using M1 mac #60

Closed jurvis closed 2 years ago

jurvis commented 2 years ago

I noticed while I was debugging issue https://github.com/Sjors/libwally-swift/issues/59 that build-libwally.sh hardcodes a --host to build libwally-core. We can tweak the shell script to detect architecture and set that accordingly now for M1-based Macs

Sjors commented 2 years ago

Thanks! I don't have an M1 machine to test this on, but it looks sane and doesn't break things on my Intel mac.