From a25005a84cac74bc28c7b80cdfdfcd444f9bc297 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Mon, 26 Oct 2020 17:29:42 +0100 Subject: [PATCH] Add option to enable asan # Conflicts: # premake5.lua --- premake5.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/premake5.lua b/premake5.lua index 23a9200b..8300dd9a 100644 --- a/premake5.lua +++ b/premake5.lua @@ -19,6 +19,11 @@ newoption { default = "vendor/glfw-3.3.2.bin.WIN32", } +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",