mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
engine: build: add RISC-V support(based on @archanox patches), add MIPS64 support
This commit is contained in:
parent
ab256e294e
commit
e8cd6e9d65
@ -104,9 +104,9 @@ const char *Q_buildos( void )
|
||||
|
||||
/*
|
||||
============
|
||||
Q_buildos
|
||||
Q_buildarch
|
||||
|
||||
Returns current name of operating system. Without any spaces.
|
||||
Returns current name of the architecture. Without any spaces.
|
||||
============
|
||||
*/
|
||||
const char *Q_buildarch( void )
|
||||
@ -134,14 +134,33 @@ const char *Q_buildarch( void )
|
||||
#endif
|
||||
|
||||
#if XASH_ARM_HARDFP
|
||||
"hf";
|
||||
"hf"
|
||||
#else
|
||||
"l";
|
||||
"l"
|
||||
#endif
|
||||
;
|
||||
#elif XASH_MIPS && XASH_BIG_ENDIAN
|
||||
archname = "mips";
|
||||
#elif XASH_MIPS && XASH_LITTLE_ENDIAN
|
||||
archname = "mipsel";
|
||||
archname = "mips"
|
||||
#if XASH_64BIT
|
||||
"64"
|
||||
#endif
|
||||
#if XASH_LITTLE_ENDIAN
|
||||
"el"
|
||||
#endif
|
||||
;
|
||||
#elif XASH_RISCV
|
||||
archname = "riscv"
|
||||
#if XASH_64BIT
|
||||
"64"
|
||||
#else
|
||||
"32"
|
||||
#endif
|
||||
#if XASH_RISCV_SINGLEFP
|
||||
"d"
|
||||
#elif XASH_RISCV_DOUBLEFP
|
||||
"f"
|
||||
#endif
|
||||
;
|
||||
#elif XASH_JS
|
||||
archname = "javascript";
|
||||
#elif XASH_E2K
|
||||
|
Loading…
x
Reference in New Issue
Block a user