Newbie: what flags do I need to set to compile homebrews for native ARM?

Sorry for the dumb question.

I've got an Apple Developer Kit with an arm architecture. Calling things like $ uname -a and $ arch returns x86_64 and i386 respectively. Running brew commands like $ brew install rsync is cross-compiling for x86, presumably using the arm half of the xcode-beta universal dev tools. The result of this is a non-fat x86_64 binary interpreted by Rosetta2 which runs fine.

I've got the the latest compilers - what command line switches do I need or how can I override the fact that the mac is advertising that it's i386?


Replies

That is not what I see on the DTK (running 11.0 Beta 6) which has ‘arch’ and ‘unname -m’ both returning “arm64”;
‘uname -a’ returning “Darwin DISCOBio-DTK1.local 20.1.0 Darwin Kernel Version 20.1.0: Fri Aug 28 20:45:29 PDT 2020; root:xnu-7195.40.65.0.2~61/RELEASEARM64T8020 arm64” [DISCOBio-DTK1 is the DTK’s host name]

Perhaps update to Beta 6 if you have not and see if that clears up the problem.
To add some information: when I quit Terminal and open it with the “Get Info->Open using Rosetta”, I then see ‘arch’ as “x8664” and ‘uname -a’ as “Darwin DISCOBio-DTK1.local 20.1.0 Darwin Kernel Version 20.1.0: Fri Aug 28 20:45:29 PDT 2020; root:xnu-7195.40.65.0.2~61/RELEASEARM64T8020 x8664” I do not know if this is what happened to the original poster.