Closed vanfanel closed 2 years ago
As far as I understand, native
will not work for cross-compiling which is what most users will use and isn't Pi specific. mcpu
should set both march
and mtune
according to the docs and you can add any extensions the Pi(s) supports that aren't enabled by default.
Your changes also need to be properly rebased.
I agree, march or mcpu=native will not work when cross compiling. The previous platform=rpiX definitions worked well.
This should be reverted.
@twinaphex As per previous comments, please revert this.
There seem to be many changes lumped into one PR that may not want to be changed. Can you please make a PR to only revert the specific parts?
@endrift This PR re-adds the specific cflags, and improves how they are processed: https://github.com/libretro/mgba/pull/255
Please merge that one.
Modern GCC provides the right flags for each Pi model, so we don't need a chunk of ifeqs for that. Also, fixed the rpi platform in general since there was a typo on the platform redefinition as unix.