Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit bb04eab

Browse files
committed
B-C: force -Od on MSVC
not only the smoker. link is just broken beyond repair
1 parent 6c41e68 commit bb04eab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpan/B-C/t/TestBC.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,8 @@ sub run_cc_test {
851851
if ($Config{ccversion} eq '12.0.8804') {
852852
$command =~ s/ -opt:ref,icf//;
853853
}
854-
$command .= " -Od" if $ENV{APPVEYOR} and $^O eq 'MSWin32';
854+
$command .= " -Od"; # not only appveyor.
855+
$command =~ s{ [/-]O[123]}{ };
855856
my $obj = $obj[0];
856857
$command =~ s/ \Q-o $exe\E / -c -Fo$obj /;
857858
my $cmdline = "$Config{cc} $command >NUL"; # need to silence it

0 commit comments

Comments
 (0)