diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-11-01 20:35:46 +0100 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-11-01 20:35:46 +0100 |
commit | 55c43466100e4e79af95500f64513c49d7242877 (patch) | |
tree | 2376e54398c53697c07bd6809b9648d561516881 /premake5.lua | |
parent | Fix build and use enum in ProcessPlayerMood (diff) | |
parent | fixed KYFC (diff) | |
download | re3-55c43466100e4e79af95500f64513c49d7242877.tar re3-55c43466100e4e79af95500f64513c49d7242877.tar.gz re3-55c43466100e4e79af95500f64513c49d7242877.tar.bz2 re3-55c43466100e4e79af95500f64513c49d7242877.tar.lz re3-55c43466100e4e79af95500f64513c49d7242877.tar.xz re3-55c43466100e4e79af95500f64513c49d7242877.tar.zst re3-55c43466100e4e79af95500f64513c49d7242877.zip |
Diffstat (limited to 'premake5.lua')
-rw-r--r-- | premake5.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua index 23a9200b..8300dd9a 100644 --- a/premake5.lua +++ b/premake5.lua @@ -20,6 +20,11 @@ newoption { } newoption { + trigger = "with-asan", + description = "Build with address sanitizer" +} + +newoption { trigger = "with-librw", description = "Build and use librw from this solution" } @@ -60,6 +65,11 @@ workspace "reVC" symbols "Full" staticruntime "off" + if _OPTIONS["with-asan"] then + buildoptions { "-fsanitize=address -g3 -fno-omit-frame-pointer" } + linkoptions { "-fsanitize=address" } + end + filter { "system:windows" } platforms { "win-x86-RW34_d3d8-mss", |