diff options
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index ba639398c64..702ae917064 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -169,6 +169,11 @@ newoption { } newoption { + trigger = "OPT_FLAGS", + description = "OPT_FLAGS.", +} + +newoption { trigger = "LDOPTS", description = "Additional linker options", } @@ -739,6 +744,11 @@ if _OPTIONS["OPTIMIZE"] then _OPTIONS["ARCHOPTS"] } end + if _OPTIONS["OPT_FLAGS"] then + buildoptions { + _OPTIONS["OPT_FLAGS"] + } + end if _OPTIONS["LTO"]=="1" then -- -flto=4 -> 4 threads buildoptions { |