diff options
author | 2016-07-14 01:01:04 +0200 | |
---|---|---|
committer | 2016-07-14 01:01:04 +0200 | |
commit | 0e5db039d86e8f141f9e440faa167e9b2a4dd5c4 (patch) | |
tree | 19d83068c1220853c8e8a26c895a406090eb0a59 /scripts/genie.lua | |
parent | 62f2777ce2631f1cddd73d785f7885f0df5afc64 (diff) |
Add arch defines for Linux alpha and mips64el.
Add detection for Linux architectures alpha and mips64el, to avoid
using gcc -m64, which isn't available on them.
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 903d77ce3ed..d07ff394ce2 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -982,6 +982,12 @@ end end end +if (_OPTIONS["PLATFORM"]=="alpha") then + defines { + "PTR64=1", + } +end + if (_OPTIONS["PLATFORM"]=="arm") then buildoptions { "-Wno-cast-align", @@ -997,6 +1003,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then } end +if (_OPTIONS["PLATFORM"]=="mips64") then + defines { + "PTR64=1", + } +end + local subdir if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"] |