fixed compiling on raspberry pi. (#1497)

This commit is contained in:
oy 2017-09-11 15:51:07 +00:00
parent b7fa16eac0
commit e92f729cc9
2 changed files with 10 additions and 0 deletions

View file

@ -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)

View file

@ -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"