Can Xcode build native Intel binaries on a M1 Mac from command line tools?

102 Views Asked by At

This is an additional question to this. I also want to compile a universal binary (or two separate ones for x86_64 and arm64). However, I am not using Xcode, but the Xcode command line tools. So far, I have only found the manual to do so for Xcode itself. How can I do this, if I just use make in command line?

1

There are 1 best solutions below

0
gernophil On

Ok, maybe this helps somebody: I just tried to use make after switching to the Rosetta Terminal via arch -x86_64 zsh. lipo -archs no displays x86_64, so it looks fine.