summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-10-26 17:29:42 +0100
committerSergeanur <s.anureev@yandex.ua>2020-10-28 09:10:44 +0100
commita25005a84cac74bc28c7b80cdfdfcd444f9bc297 (patch)
treeb98db1950f01f5ae23a71920100a46c8c3359b55 /premake5.lua
parentOpenAL channels now use their own sound buffers (diff)
downloadre3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.tar
re3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.tar.gz
re3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.tar.bz2
re3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.tar.lz
re3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.tar.xz
re3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.tar.zst
re3-a25005a84cac74bc28c7b80cdfdfcd444f9bc297.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua10
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",