Add Debug and Release linker flags
parent
41864fd49e
commit
df18c5b745
|
|
@ -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 ?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue