Generate a PDB debug file when running on Windows MSVC

This commit is contained in:
Hugo Melder 2022-08-04 18:03:45 +02:00
parent 7218248df7
commit 3fbf44d28e

View file

@ -43,6 +43,14 @@ endif
INTERNAL_CFLAGS = -pthread
INTERNAL_OBJCFLAGS = -pthread
INTERNAL_LDFLAGS =
ifeq ($(debug), yes)
# Embed PDB Debug Info on Windows MSVC
ifeq ($(findstring windows, $(GNUSTEP_TARGET_OS)), windows)
INTERNAL_LDFLAGS += -Wl,-debug
endif
endif
ifneq ($(findstring android, $(GNUSTEP_TARGET_OS)), android)
ifneq ($(GNUSTEP_TARGET_OS), windows)
INTERNAL_LDFLAGS = -pthread