lilium-voyager/code/qcommon
Simon McVittie 2a71948f21 build: define ARCH_STRING in Makefile on Linux and other GNU platforms
GNU platforms (Linux, kFreeBSD, Hurd) have endian.h to determine
endianness, so all architectures except x86_64 are in fact treated
identically, except that their ARCH_STRING is different.
The ARCH_STRING must always be identical to the ARCH from the Makefile,
otherwise the engine will not find its cgame, game and ui plugins
under their expected names and startup will fail. If we pass it in
from the Makefile, then an identical value is guaranteed, and we can
get rid of an increasingly long list of defined(__some_cpu__) tests.

The one remaining quirk is that we test __x86_64__ to determine
whether to define idx64; I've kept that, but separated it from
the ARCH_STRING.

On non-Linux platforms we only support a few architectures anyway,
so keeping the list up to date is less of a burden; *BSD porters
could probably use the same technique to get support for lots of
architectures with little effort, but I have not done that here,
because I cannot test it.

Windows must continue to support preprocessor-based architecture tests
in any case, so that the MSVC solutions (which do not use the Makefile)
can continue to work. However, Windows only runs on a few CPU families,
so this shouldn't be a significant burden in practice.

When cross-compiling, the tools are compiled for the build architecture
(COMPILE_PLATFORM, COMPILE_ARCH) rather than the host architecture
(PLATFORM, ARCH), so define ARCH_STRING to COMPILE_ARCH on a GNU
COMPILE_PLATFORM.
2015-07-14 22:51:57 +01:00
..
cm_load.c Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
cm_local.h * Bug fix to collision optimisation (arQon) 2007-10-06 21:59:17 +00:00
cm_patch.c Fix OOB access in CM_EdgePlaneNum without erroring in CM_GridPlane 2014-05-25 23:03:42 -05:00
cm_patch.h * Added STATUS 2005-10-29 01:53:09 +00:00
cm_polylib.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
cm_polylib.h * Added STATUS 2005-10-29 01:53:09 +00:00
cm_public.h Remove references to non-existent functions CM_MarkFragments and CM_LerpTag. 2012-11-19 05:48:27 +00:00
cm_test.c * Bug fix to collision optimisation (arQon) 2007-10-06 21:59:17 +00:00
cm_trace.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
cmd.c Increase various arbitrary limits - Bug #5463 2013-01-06 01:36:39 -08:00
common.c Fix Com_RandomBytes weak-random case 2015-03-20 18:50:58 -05:00
cvar.c Merge pull request #22 from zturtleman/cvar_modified 2015-01-07 19:48:16 -06:00
files.c Fix FS_FOpenFileReadDir non-zero file handle when file not found in pk3 2014-03-18 20:49:52 -05:00
huffman.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
ioapi.c Just unix2dos, nothing to see here ... 2009-10-19 14:00:16 +00:00
ioapi.h Just unix2dos, nothing to see here ... 2009-10-19 14:00:16 +00:00
md4.c Fix a few warnings 2014-08-30 17:29:23 +01:00
md5.c fix a WRONG size argument to a memset() call found by Clang/LLVM 2012-06-19 14:53:40 +00:00
msg.c Fix a few warnings 2014-08-30 17:29:23 +01:00
net_chan.c Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
net_ip.c Fix a few warnings 2014-08-30 17:29:23 +01:00
puff.c * PNG support from Joerg Dietrich <dietrich_joerg@t-online.de> 2007-08-23 17:23:15 +00:00
puff.h * PNG support from Joerg Dietrich <dietrich_joerg@t-online.de> 2007-08-23 17:23:15 +00:00
q_math.c Modular rendering system. Patch by use.less01 2011-08-01 01:19:55 +00:00
q_platform.h build: define ARCH_STRING in Makefile on Linux and other GNU platforms 2015-07-14 22:51:57 +01:00
q_shared.c fix a stupid use of strcpy() 2015-06-18 17:24:50 -05:00
q_shared.h Add facility to describe cvars 2014-09-26 14:29:51 +01:00
qcommon.h Add facility to describe cvars 2014-09-26 14:29:51 +01:00
qfiles.h #6069: Remove md4 model support. 2013-11-29 16:13:47 -08:00
surfaceflags.h * Added STATUS 2005-10-29 01:53:09 +00:00
unzip.c unzip: comment why there is no USE_INTERNAL_MINIZIP boolean option 2015-03-18 17:38:10 +00:00
unzip.h REFACTOR [a vs an] 2012-06-18 16:31:16 +00:00
vm.c Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.) 2012-12-15 21:55:07 +00:00
vm_interpreted.c Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.) 2012-12-15 21:55:07 +00:00
vm_local.h Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.) 2012-12-15 21:55:07 +00:00
vm_none.c revert int->long change as it breaks on 64bit. Actually only 2005-09-26 22:23:46 +00:00
vm_powerpc.c drop some useless return statements 2013-05-30 15:43:21 -05:00
vm_powerpc_asm.c REFACTOR [a vs an] 2012-06-18 16:31:16 +00:00
vm_powerpc_asm.h new PowerPC vm 2008-11-10 09:46:01 +00:00
vm_sparc.c fix some "\n"-related stuff 2013-05-30 15:32:44 -05:00
vm_sparc.h qcommon: vm: Add sparc JIT compiler. 2009-03-02 17:29:40 +00:00
vm_x86.c Fix return values in nested system calls from QVMs 2015-03-23 20:17:07 -05:00