diff options
author | 2015-12-27 15:35:29 +0100 | |
---|---|---|
committer | 2015-12-27 15:35:29 +0100 | |
commit | 9c2669081c71ab3f592766f7fae794ec0525fad5 (patch) | |
tree | 82459c59d6566bcb7eebabbc62fe1824238ac09f /scripts/genie.lua | |
parent | a6fc794c3a3b8aa34de77f045e48ea8697aecd7b (diff) |
Added platform parameter and some ARM fixes (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 14 |
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 |