pass "-g" again for lto and asan on windows

for some weird reason it will omit all debug symbols otherwise, which we need for crashlogs and stuff
This commit is contained in:
Alug committed 2025-08-01 17:31:12 +01:00
1 parent 2ab66b113c
commit e10345b4de
1 file changed
+12
+12
View File
@@ -246,13 +246,25 @@ debug_opts=-DNDEBUG
opts+=-O3
ifdef USELTO
# compile with LTO
ifdef MINGW
opts+=-flto=auto -g
libs+=-flto=auto -g
else
opts+=-flto=auto
libs+=-flto=auto
endif
endif
endif
ifdef USEASAN
# compile with asan
ifdef MINGW
opts+=-fsanitize=address -g
libs+=-fsanitize=address -g
else
opts+=-fsanitize=address
libs+=-fsanitize=address
endif
opts+=-fsanitize=address
libs+=-fsanitize=address
endif