mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed compiling on raspberry pi. (#1497)
This commit is contained in:
parent
b7fa16eac0
commit
e92f729cc9
2
bam.lua
2
bam.lua
|
@ -167,6 +167,8 @@ function GenerateLinuxSettings(settings, conf, arch, compiler)
|
|||
elseif arch == "x86_64" then
|
||||
settings.cc.flags:Add("-m64")
|
||||
settings.link.flags:Add("-m64")
|
||||
elseif arch == "armv7l" then
|
||||
-- arm 32 bit
|
||||
else
|
||||
print("Unknown Architecture '" .. arch .. "'. Supported: x86, x86_64")
|
||||
os.exit(1)
|
||||
|
|
|
@ -140,6 +140,14 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__arm__)
|
||||
#define CONF_ARCH_ARM 1
|
||||
#define CONF_ARCH_STRING "arm"
|
||||
#if !defined(CONF_ARCH_ENDIAN_LITTLE) && !defined(CONF_ARCH_ENDIAN_BIG)
|
||||
#define CONF_ARCH_ENDIAN_LITTLE 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef CONF_FAMILY_STRING
|
||||
#define CONF_FAMILY_STRING "unknown"
|
||||
|
|
Loading…
Reference in a new issue