diff options
author | 2018-02-01 01:13:16 +1100 | |
---|---|---|
committer | 2018-02-01 01:13:16 +1100 | |
commit | 73ce78f7b4d4c1ff8ed36f6fef61fc00a2e9135e (patch) | |
tree | 7a50841459d42fee5739652092d6629870f81e3e /docs/release/scripts/genie.lua | |
parent | 6488544820bbf9bc96bd2f29bbc0a8b7c0b246fa (diff) |
0.193 Release filestag193
Diffstat (limited to 'docs/release/scripts/genie.lua')
-rw-r--r-- | docs/release/scripts/genie.lua | 53 |
1 files changed, 45 insertions, 8 deletions
diff --git a/docs/release/scripts/genie.lua b/docs/release/scripts/genie.lua index e905e3b6aef..d44cdf12a71 100644 --- a/docs/release/scripts/genie.lua +++ b/docs/release/scripts/genie.lua @@ -387,6 +387,11 @@ newoption { } newoption { + trigger = "SANITIZE", + description = "Specifies the santizer(s) to use." +} + +newoption { trigger = "PROJECT", description = "Select projects to be built. Will look into project folder for files.", } @@ -465,6 +470,9 @@ flags { } configuration { "vs*" } + buildoptions { + "/bigobj", + } flags { "NoPCH", "ExtraWarnings", @@ -844,7 +852,7 @@ end configuration { "mingw-clang" } buildoptions { - "-O1", -- without this executable crash often + "-Xclang -flto-visibility-public-std", -- workround for __imp___ link errors } configuration { } @@ -947,14 +955,39 @@ end buildoptions_cpp { "-Woverloaded-virtual", } - ---ifdef SANITIZE ---CCOMFLAGS += -fsanitize=$(SANITIZE) + +if _OPTIONS["SANITIZE"] then + buildoptions { + "-fsanitize=".. _OPTIONS["SANITIZE"] + } + linkoptions { + "-fsanitize=".. _OPTIONS["SANITIZE"] + } + if string.find(_OPTIONS["SANITIZE"], "address") then + buildoptions { + "-fsanitize-address-use-after-scope" + } + linkoptions { + "-fsanitize-address-use-after-scope" + } + end + if string.find(_OPTIONS["SANITIZE"], "undefined") then + -- 'function' produces errors without delegates by design + -- 'alignment' produces a lot of errors which we are not interested in + buildoptions { + "-fno-sanitize=function", + "-fno-sanitize=alignment" + } + linkoptions { + "-fno-sanitize=function", + "-fno-sanitize=alignment" + } + end +end --ifneq (,$(findstring thread,$(SANITIZE))) --CCOMFLAGS += -fPIE --endif ---endif @@ -1048,6 +1081,7 @@ configuration { "android*" } "-Wno-undef", "-Wno-typedef-redefinition", "-Wno-unknown-warning-option", + "-Wno-incompatible-ms-struct", } buildoptions_cpp { "-x c++", @@ -1129,10 +1163,13 @@ configuration { "osx* or xcode4" } } configuration { "mingw*" } + if _OPTIONS["osd"]~="sdl" + then + linkoptions { + "-static", + } + end linkoptions { - "-static-libgcc", - "-static-libstdc++", - "-static", "-Wl,--start-group", } links { |