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 21:04:47 +02:00
1 parent 7c7e6c4856
commit e8af8b73c5
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