mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 00:41:14 +00:00
Ensure -gcodeview on Windows MSVC
This commit is contained in:
parent
cd8d5259ee
commit
ca20ad3cfd
1 changed files with 11 additions and 1 deletions
12
common.make
12
common.make
|
@ -745,7 +745,7 @@ ifeq ($(debug), yes)
|
|||
ADDITIONAL_FLAGS := $(filter-out -O%, $(ADDITIONAL_FLAGS))
|
||||
# If OPTFLAG does not already include -g, add it here.
|
||||
ifneq ($(filter -g, $(OPTFLAG)), -g)
|
||||
ADDITIONAL_FLAGS += -g
|
||||
OPTFLAG += -g
|
||||
endif
|
||||
# Add standard debug compiler flags.
|
||||
ADDITIONAL_FLAGS += -DDEBUG -fno-omit-frame-pointer
|
||||
|
@ -759,6 +759,16 @@ else
|
|||
INTERNAL_JAVACFLAGS += -O
|
||||
endif
|
||||
|
||||
# On Windows MSVC we also need -gcodeview to generate debug symbols, and since
|
||||
# Autoconf does not add it we add it here.
|
||||
ifeq ($(GNUSTEP_TARGET_OS), windows)
|
||||
ifeq ($(filter -g, $(OPTFLAG)), -g)
|
||||
ifneq ($(filter -gcodeview, $(OPTFLAG)), -gcodeview)
|
||||
OPTFLAG += -gcodeview
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(warn), no)
|
||||
ADDITIONAL_FLAGS += -UGSWARN
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue