diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-10-26 17:29:42 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2020-10-26 17:29:42 +0100 |
commit | f144a782b79271c5836481d1f2767a5cb43a6003 (patch) | |
tree | e980c88cc2de8469e2a5268e921f66932026b6d4 /premake5.lua | |
parent | (TEST) Try to fix OAL audio problems (diff) | |
download | re3-f144a782b79271c5836481d1f2767a5cb43a6003.tar re3-f144a782b79271c5836481d1f2767a5cb43a6003.tar.gz re3-f144a782b79271c5836481d1f2767a5cb43a6003.tar.bz2 re3-f144a782b79271c5836481d1f2767a5cb43a6003.tar.lz re3-f144a782b79271c5836481d1f2767a5cb43a6003.tar.xz re3-f144a782b79271c5836481d1f2767a5cb43a6003.tar.zst re3-f144a782b79271c5836481d1f2767a5cb43a6003.zip |
Diffstat (limited to '')
-rw-r--r-- | premake5.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua index 9d9243db..b5b885b3 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 "re3" 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-RW33_d3d8-mss",
|