summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2002-04-22 02:35:45 +0000
committerGurusamy Sarathy <gsar@cpan.org>2002-04-22 02:35:45 +0000
commitd921a5fbd57e5a5e78de0c6f237dd9ef3d71323c (patch)
tree46bff8373b808bd5211d880f9d75b77bdaf0832d /win32
parent628c7d9c05090594916fe422ce2f4d732bb57cc9 (diff)
downloadperl-d921a5fbd57e5a5e78de0c6f237dd9ef3d71323c.tar.gz
enable maximal optimizations on win64
p4raw-id: //depot/perl@16059
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile13
-rw-r--r--win32/makefile.mk15
2 files changed, 19 insertions, 9 deletions
diff --git a/win32/Makefile b/win32/Makefile
index 17c4bc2cfd..e8a35c0cf6 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -350,10 +350,17 @@ OPTIMIZE = -Od -MD -Zi -DDEBUGGING
! ENDIF
LINK_DBG = -debug
!ELSE
-# -O1 yields smaller code, which turns out to be faster than -O2
-#OPTIMIZE = -O2 -MD -DNDEBUG
-OPTIMIZE = -O1 -MD -DNDEBUG
+OPTIMIZE = -MD -DNDEBUG
LINK_DBG = -release
+! IF "$(WIN64)" == "define"
+# enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
+OPTIMIZE = $(OPTIMIZE) -Ox -GL
+LINK_DBG = $(LINK_DBG) -ltcg
+! ELSE
+# -O1 yields smaller code, which turns out to be faster than -O2 on x86
+OPTIMIZE = $(OPTIMIZE) -O1
+#OPTIMIZE = $(OPTIMIZE) -O2
+! ENDIF
!ENDIF
!IF "$(WIN64)" == "define"
diff --git a/win32/makefile.mk b/win32/makefile.mk
index 1527b27444..35a9eb350f 100644
--- a/win32/makefile.mk
+++ b/win32/makefile.mk
@@ -467,14 +467,17 @@ OPTIMIZE = -O1 -MD -Zi -DDEBUGGING
.ENDIF
LINK_DBG = -debug
.ELSE
-.IF "$(CFG)" == "Optimize"
-# -O1 yields smaller code, which turns out to be faster than -O2
-#OPTIMIZE = -O2 -MD -DNDEBUG
-OPTIMIZE = -O1 -MD -DNDEBUG
+OPTIMIZE = -MD -DNDEBUG
+LINK_DBG = -release
+.IF "$(WIN64)" == "define"
+# enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
+OPTIMIZE += -Ox -GL
+LINK_DBG += -ltcg
.ELSE
-OPTIMIZE = -Od -MD -DNDEBUG
+# -O1 yields smaller code, which turns out to be faster than -O2 on x86
+OPTIMIZE += -O1
+#OPTIMIZE += -O2
.ENDIF
-LINK_DBG = -release
.ENDIF
.IF "$(WIN64)" == "define"