Compiling for multiple targets


(Björn Kruggel) #1

Hello,

We’re using homebrew to compile a few packages and then distribute the executables to different Mac minis. We now have a few very old Mac (2012 models), where the executables that were compiled on newer Mac don’t work (The error is Illegal instruction: 4). I guess there is some instruction set that the newer processors support that the old processors don’t support.

Is there any way to change the instructions sets used during compilation? Or are we doing something completely wrong?

Regards,
Björn


(Mike McQuaid) #2

We don’t support building on one machine for distribution to others. You may have more luck if you use brew install --build-bottle but then you will need to manually run brew postinstall for formulae that need it.