Add Debug and Release linker flags

pull/873/head
Jeffrey Walton 2019-08-06 00:20:59 -04:00
parent 41864fd49e
commit df18c5b745
1 changed files with 6 additions and 4 deletions

View File

@ -153,12 +153,14 @@ LDFLAGS = /nologo /SUBSYSTEM:CONSOLE /DEBUG
ARFLAGS = /nologo ARFLAGS = /nologo
LDLIBS = LDLIBS =
# Debug build. # Compiler debug build.
# CXXFLAGS = $(CXXFLAGS) /DDEBUG /D_DEBUG /Oi /Oy- /Od /MTd # CXXFLAGS = $(CXXFLAGS) /DDEBUG /D_DEBUG /Oi /Oy- /Od /MTd
# Release build. Add /OPT:REF to linker # Compiler release build.
CXXFLAGS = $(CXXFLAGS) /DNDEBUG /D_NDEBUG /Oi /Oy /O2 /MT CXXFLAGS = $(CXXFLAGS) /DNDEBUG /D_NDEBUG /Oi /Oy /O2 /MT
# Linker flags. # Linker debug build.
LDFLAGS = $(LDFLAGS) /OPT:REF # LDFLAGS = $(LDFLAGS) /DEBUG
# Linker release build.
LDFLAGS = $(LDFLAGS) /DEBUG /OPT:REF
# Attempt to detect when <sdkddkver.h> and <winapifamily.h> are available # Attempt to detect when <sdkddkver.h> and <winapifamily.h> are available
# http://stackoverflow.com/q/40577415 ? # http://stackoverflow.com/q/40577415 ?