Skip to content

Commit

Permalink
configpm support for msys
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Maischein committed Aug 1, 2023
1 parent bcad2df commit a7696c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions configpm
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,12 @@ EOT

my $osname = fetch_string({}, 'osname');
my $from = $osname eq 'VMS' ? 'PERLSHR image' : 'binary (from libperl)';
my $env_cygwin = $osname eq 'cygwin'
? 'push @env, "CYGWIN=\"$ENV{CYGWIN}\"" if $ENV{CYGWIN};' . "\n" : "";
my $env_cygwin = '';
if( $^O eq 'cygwin' ) {
$env_cygwin = 'push @env, "CYGWIN=\"$ENV{CYGWIN}\"" if $ENV{CYGWIN};' . "\n";
} elsif( $^O eq 'msys' ) {
$env_cygwin = 'push @env, "MSYS=\"$ENV{MSYS}\"" if $ENV{MSYS};' . "\n";
};

$heavy_txt .= sprintf uncomment <<'ENDOFBEG', $osname, $osname, $from, $osname, $env_cygwin;
# # This file was created by configpm when Perl was built. Any changes
Expand Down

0 comments on commit a7696c7

Please sign in to comment.