Skip to content

Commit 3e4be0a

Browse files
committed
Update makefile.rules for Cygwin/Windows
1 parent 017ea74 commit 3e4be0a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

makefile.rules

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ ifeq ($(TARGET),intel64)
1010
BITNESS := 64
1111
endif
1212

13-
TOOL_CXXFLAGS += -Wno-deprecated-declarations -g
14-
TOOL_CXXFLAGS_NOOPT += -Wno-deprecated-declarations -g
13+
ifeq ($(TARGET_OS),linux)
14+
TOOL_CXXFLAGS += -Wno-deprecated-declarations -g
15+
TOOL_CXXFLAGS_NOOPT += -Wno-deprecated-declarations -g
16+
endif
17+
18+
ifeq ($(TARGET_OS),windows)
19+
TOOL_LDFLAGS += /DEBUG /PDBALTPATH:%_PDB%
20+
endif
1521

1622
##############################################################
1723
#

0 commit comments

Comments
 (0)