Be generically portable to new CPUs on all GNU platforms #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
This pull request collects several portability changes originating in Debian that were merged into ioquake3 between 2011 and 2015.
ARCH_STRINGis just the output ofuname -m. The only special cases needed are for 32-bit x86 and ARM, whereuname -mcan take multiple values (such asi586,i686,armv5tel,armv7l) which we need to normalize tox86andarmto be compatible across CPUs from the same family. This patch is enough to avoid needing a change like Add support for Aarch64 (ARM64) ioquake/ioq3#128 for each new architecture, and in particular provides aarch64 (64-bit ARM) support.The
ARCH_STRINGis not actually used anywhere in the gamecode, except for raising a#errorif it isn't defined. I could have deleted it completely, but I thought it was probably better to keepq_platform.hconsistent with the one in ioquake3.Please see the commit messages of the individual commits for more information.