summaryrefslogtreecommitdiff
path: root/win32/config_sh.PL
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2013-10-28 01:28:41 -0400
committerSteve Hay <steve.m.hay@googlemail.com>2013-10-29 21:23:42 +0000
commita9e3f35916a989e6c527206f43af85f49ef58cbb (patch)
tree7fc9899d9cf90e25615914476ab89e38f0a741bb /win32/config_sh.PL
parenta441c53fbf2dab986f88f08b421a2f5edb10f52b (diff)
downloadperl-a9e3f35916a989e6c527206f43af85f49ef58cbb.tar.gz
enable LTO/LTCG/WPO for most Visual Cs
All Win32 Visual C compilers except for VC 6/_MSC_VER == 1200 support LTCG. LTCG generates slightly smaller and slightly faster binaries.
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r--win32/config_sh.PL5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL
index f3fdf075d8..d9bfd9922b 100644
--- a/win32/config_sh.PL
+++ b/win32/config_sh.PL
@@ -201,12 +201,17 @@ if ($opt{cc} =~ /\bcl/ and $opt{ccversion} =~ /^(\d+)/) {
$opt{sGMTIME_max} = 32535291599;
$opt{sLOCALTIME_max} = 32535244799;
}
+ if($ccversion < 13) { #VC6
+ $opt{ar} ='lib';
+ }
}
if ($opt{useithreads} eq 'define' && $opt{ccflags} =~ /-DPERL_IMPLICIT_SYS\b/) {
$opt{d_pseudofork} = 'define';
}
+#if the fields above are defined, they override the defaults in the premade
+#config file
while (<>) {
s/~([\w_]+)~/exists $opt{$1} ? $opt{$1} : ''/eg;
if (/^([\w_]+)=(.*)$/) {