mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
tweak MSVC compiler flags
We now use -O2 for the "fast" build and always pass -debug to the linker so we get a PDB file.
This commit is contained in:
parent
d5f5c2351b
commit
67cdac3a36
6
makefile
6
makefile
@ -271,19 +271,17 @@ ifdef msvc
|
||||
-I"$(windows-java-home)/include/win32"
|
||||
shared = -dll
|
||||
lflags = -nologo -LIBPATH:"$(zlib)/lib" -DEFAULTLIB:ws2_32 \
|
||||
-DEFAULTLIB:zlib -MANIFEST
|
||||
-DEFAULTLIB:zlib -MANIFEST -debug
|
||||
output = -Fo$(1)
|
||||
|
||||
ifeq ($(mode),debug)
|
||||
cflags += -Od -Zi -MDd
|
||||
lflags += -debug
|
||||
endif
|
||||
ifeq ($(mode),debug-fast)
|
||||
cflags += -Od -Zi -DNDEBUG
|
||||
lflags += -debug
|
||||
endif
|
||||
ifeq ($(mode),fast)
|
||||
cflags += -Ob2it -GL -Zi -DNDEBUG
|
||||
cflags += -O2 -GL -Zi -DNDEBUG
|
||||
lflags += -LTCG
|
||||
endif
|
||||
ifeq ($(mode),small)
|
||||
|
Loading…
Reference in New Issue
Block a user