Commit b84b698a17351b0b219cc06ced20e2d917628190

Authored by Jay Berkenbilt
1 parent 46c17826

add optimization to cl

git-svn-id: svn+q:///qpdf/trunk@881 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing 1 changed file with 5 additions and 5 deletions
make/msvc.mk
@@ -35,7 +35,7 @@ endef @@ -35,7 +35,7 @@ endef
35 # 1 2 35 # 1 2
36 # Usage: $(call c_compile,src,includes) 36 # Usage: $(call c_compile,src,includes)
37 define c_compile 37 define c_compile
38 - cl /nologo /Zi /Gy /EHsc /MD $(CPPFLAGS) $(CXXFLAGS) \ 38 + cl /nologo /O2 /Zi /Gy /EHsc /MD $(CPPFLAGS) $(CXXFLAGS) \
39 $(foreach I,$(2),-I$(I)) \ 39 $(foreach I,$(2),-I$(I)) \
40 /c $(1) /Fo$(call c_src_to_obj,$(1)) 40 /c $(1) /Fo$(call c_src_to_obj,$(1))
41 endef 41 endef
@@ -43,7 +43,7 @@ endef @@ -43,7 +43,7 @@ endef
43 # 1 2 43 # 1 2
44 # Usage: $(call libcompile,src,includes) 44 # Usage: $(call libcompile,src,includes)
45 define libcompile 45 define libcompile
46 - cl /nologo /Zi /Gy /EHsc /MD /TP /GR $(CPPFLAGS) $(CXXFLAGS) \ 46 + cl /nologo /O2 /Zi /Gy /EHsc /MD /TP /GR $(CPPFLAGS) $(CXXFLAGS) \
47 -DDLL_EXPORT $(foreach I,$(2),-I$(I)) \ 47 -DDLL_EXPORT $(foreach I,$(2),-I$(I)) \
48 /c $(1) /Fo$(call src_to_obj,$(1)) 48 /c $(1) /Fo$(call src_to_obj,$(1))
49 endef 49 endef
@@ -51,7 +51,7 @@ endef @@ -51,7 +51,7 @@ endef
51 # 1 2 51 # 1 2
52 # Usage: $(call c_libcompile,src,includes) 52 # Usage: $(call c_libcompile,src,includes)
53 define c_libcompile 53 define c_libcompile
54 - cl /nologo /Zi /Gy /EHsc /MD $(CPPFLAGS) $(CXXFLAGS) \ 54 + cl /nologo /O2 /Zi /Gy /EHsc /MD $(CPPFLAGS) $(CXXFLAGS) \
55 -DDLL_EXPORT $(foreach I,$(2),-I$(I)) \ 55 -DDLL_EXPORT $(foreach I,$(2),-I$(I)) \
56 /c $(1) /Fo$(call c_src_to_obj,$(1)) 56 /c $(1) /Fo$(call c_src_to_obj,$(1))
57 endef 57 endef
@@ -65,7 +65,7 @@ endef @@ -65,7 +65,7 @@ endef
65 # 1 2 3 4 5 6 7 65 # 1 2 3 4 5 6 7
66 # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age) 66 # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
67 define makelib 67 define makelib
68 - cl /nologo /Zi /Gy /EHsc /MD /LD /Fe$(basename $(2))$(5).dll $(1) \ 68 + cl /nologo /O2 /Zi /Gy /EHsc /MD /LD /Fe$(basename $(2))$(5).dll $(1) \
69 /link /incremental:no \ 69 /link /incremental:no \
70 $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \ 70 $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \
71 $(foreach L,$(subst -l,,$(4)),$(L).lib) 71 $(foreach L,$(subst -l,,$(4)),$(L).lib)
@@ -79,7 +79,7 @@ endef @@ -79,7 +79,7 @@ endef
79 # 1 2 3 4 79 # 1 2 3 4
80 # Usage: $(call makebin,objs,binary,ldflags,libs) 80 # Usage: $(call makebin,objs,binary,ldflags,libs)
81 define makebin 81 define makebin
82 - cl /nologo /Zi /Gy /EHsc /MD $(1) \ 82 + cl /nologo /O2 /Zi /Gy /EHsc /MD $(1) \
83 /link /incremental:no /OUT:$(2) \ 83 /link /incremental:no /OUT:$(2) \
84 $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \ 84 $(foreach L,$(subst -L,,$(3)),/LIBPATH:$(L)) \
85 $(foreach L,$(subst -l,,$(4)),$(L).lib) 85 $(foreach L,$(subst -l,,$(4)),$(L).lib)