diff --git a/scripts/genie.lua b/scripts/genie.lua index 9cb7ee2a4df13..aa16253a130a7 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1087,6 +1087,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then } end +if (_OPTIONS["PLATFORM"]=="riscv64") then + buildoptions { + "-Wno-cast-align", + } +end + local subdir if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]