Skip to content

Commit 68d724a

Browse files
authored
disable optimize for compiling (#232)
1 parent 1318094 commit 68d724a

File tree

1 file changed

+2
-4
lines changed
  • scripts/lib/Devel/PatchPerl/Plugin

1 file changed

+2
-4
lines changed

scripts/lib/Devel/PatchPerl/Plugin/MinGW.pm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -959,11 +959,9 @@ sub _write_gnumakefile {
959959
$makefile =~ s/__PERL_MINOR_VERSION__/$v[0]$v[1]/g;
960960
$makefile =~ s/__PERL_VERSION__/$v[0]$v[1]$v[2]/g;
961961

962-
# disable optimize because the their builds fail.
962+
# disable optimize because the the builds fail with ExceptionCode.EXCEPTION_ACCESS_VIOLATION.
963963
# they maybe contain undefined behavior???
964-
if($version eq "5.10.0" || $version eq "5.12.5") {
965-
$makefile =~ s/-O2/-O0/g;
966-
}
964+
$makefile =~ s/-O2/-O0/g;
967965

968966
_write_or_die(File::Spec->catfile("win32", "GNUmakefile"), $makefile);
969967
}

0 commit comments

Comments
 (0)