I would like to optimize the binary for a remote machine. On the local machine I can just pass the
g++ -mtune=native
flag and (in the ideal case) the compiler selects the available instruction sets.
How can we do this for the remote machine? The ideal case would be to pass the remote machine's
/proc/cpuinfo
to gcc. Is there a way of doing this automatically?