mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 16:20:01 +00:00
Add option to enable asan
# Conflicts: # premake5.lua
This commit is contained in:
parent
86b1d9aea5
commit
a25005a84c
10
premake5.lua
10
premake5.lua
|
@ -19,6 +19,11 @@ newoption {
|
||||||
default = "vendor/glfw-3.3.2.bin.WIN32",
|
default = "vendor/glfw-3.3.2.bin.WIN32",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "with-asan",
|
||||||
|
description = "Build with address sanitizer"
|
||||||
|
}
|
||||||
|
|
||||||
newoption {
|
newoption {
|
||||||
trigger = "with-librw",
|
trigger = "with-librw",
|
||||||
description = "Build and use librw from this solution"
|
description = "Build and use librw from this solution"
|
||||||
|
@ -60,6 +65,11 @@ workspace "reVC"
|
||||||
symbols "Full"
|
symbols "Full"
|
||||||
staticruntime "off"
|
staticruntime "off"
|
||||||
|
|
||||||
|
if _OPTIONS["with-asan"] then
|
||||||
|
buildoptions { "-fsanitize=address -g3 -fno-omit-frame-pointer" }
|
||||||
|
linkoptions { "-fsanitize=address" }
|
||||||
|
end
|
||||||
|
|
||||||
filter { "system:windows" }
|
filter { "system:windows" }
|
||||||
platforms {
|
platforms {
|
||||||
"win-x86-RW34_d3d8-mss",
|
"win-x86-RW34_d3d8-mss",
|
||||||
|
|
Loading…
Reference in a new issue