summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-27 15:35:29 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-27 15:35:29 +0100
commit9c2669081c71ab3f592766f7fae794ec0525fad5 (patch)
tree82459c59d6566bcb7eebabbc62fe1824238ac09f /scripts/genie.lua
parenta6fc794c3a3b8aa34de77f045e48ea8697aecd7b (diff)
Added platform parameter and some ARM fixes (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index c86301ef573..89dc6a56a0b 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -388,6 +388,11 @@ newoption {
}
}
+newoption {
+ trigger = "PLATFORM",
+ description = "Target machine platform (x86,arm,...)",
+}
+
if _OPTIONS["SHLIB"]=="1" then
LIBTYPE = "SharedLib"
else
@@ -1012,9 +1017,12 @@ end
}
end
end
---ifeq ($(findstring arm,$(UNAME)),arm)
--- CCOMFLAGS += -Wno-cast-align
---endif
+
+if (_OPTIONS["PLATFORM"]=="arm") then
+ buildoptions {
+ "-Wno-cast-align",
+ }
+end
local subdir
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then