summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Julian Sikorski <belegdol+github@gmail.com>2018-06-14 01:21:30 +0200
committer ajrhacker <ajrhacker@users.noreply.github.com>2018-06-13 19:21:30 -0400
commitfe162f615b8e5639e5255abe1522bb6a7bb81510 (patch)
treeb413118fc71319bb4d620cb363e182da654890f7 /scripts/genie.lua
parente212a850762fb9cade06b9677d0dfbf473eb5b46 (diff)
Enable building on riscv64 (#3655)
* First attempt at enabling building on riscv64 * PTR64=1 needs to be defined on riscv64 otherwise build fails
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 7cf0396b580..ed289f73396 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -1061,6 +1061,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then
}
end
+if (_OPTIONS["PLATFORM"]=="riscv64") then
+ defines {
+ "PTR64=1",
+ }
+end
+
if (_OPTIONS["PLATFORM"]=="mips64") then
defines {
"PTR64=1",