diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-27 12:50:34 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-27 12:50:34 +0000 |
commit | 58a50f6288bdd18f3f469352f83c5e7ade50ee7a (patch) | |
tree | 75e3cf009472464e5cedca77f1c708bab1b5fb1e /lib/ExtUtils | |
parent | 35ff78560a01016ce2a3dffe29f18ce851bc0b90 (diff) | |
download | perl-58a50f6288bdd18f3f469352f83c5e7ade50ee7a.tar.gz |
[asperl] add AS patch#21 (misc. fixes)
p4raw-id: //depot/asperl@1036
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r-- | lib/ExtUtils/MM_Unix.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm index 3b5dbb3616..f1102aa44e 100644 --- a/lib/ExtUtils/MM_Unix.pm +++ b/lib/ExtUtils/MM_Unix.pm @@ -370,9 +370,12 @@ sub cflags { if ($self->{CAPI}) { $self->{CCFLAGS} =~ s/-DPERL_OBJECT(\s|$)//; - $self->{CCFLAGS} =~ s/-TP(\s|$)//; - $self->{OPTIMIZE} =~ s/-TP(\s|$)//; $self->{CCFLAGS} .= '-DPERL_CAPI'; + if ($Is_Win32 && $Config{'cc'} =~ /^cl.exe/i) { + # Turn off C++ mode of the MSC compiler + $self->{CCFLAGS} =~ s/-TP(\s|$)//; + $self->{OPTIMIZE} =~ s/-TP(\s|$)//; + } } return $self->{CFLAGS} = qq{ CCFLAGS = $self->{CCFLAGS} |