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?