From e10345b4de52614918198bb1b7f18029211aa79d Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 1 Aug 2025 17:31:12 +0100 Subject: [PATCH] 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 --- src/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Makefile b/src/Makefile index 38750db12..0c9fc1472 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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