summaryrefslogtreecommitdiff
path: root/win32/Makefile
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/Makefile
parent628c7d9c05090594916fe422ce2f4d732bb57cc9 (diff)
downloadperl-d921a5fbd57e5a5e78de0c6f237dd9ef3d71323c.tar.gz
enable maximal optimizations on win64
p4raw-id: //depot/perl@16059
Diffstat (limited to 'win32/Makefile')
-rw-r--r--win32/Makefile13
1 files changed, 10 insertions, 3 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"