Changeset 4325 for inc

Show
Ignore:
Timestamp:
06/02/05 15:35:40 (4 years ago)
Author:
Enveigler
svk:copy_cache_prev:
5913
Message:

Enveigler | Allow pugs to find 'ghc.exe' via the path rather than ENV

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • inc/Module/Install/Pugs.pm

    r4188 r4325  
    149149sub assert_ghc { 
    150150    my $self = shift; 
    151     my $ghc = $self->can_run($ENV{GHC} || 'ghc'); 
     151    my $ghc = $self->can_run($ENV{GHC} || ( 'ghc' . $Config{_exe} ) ); 
    152152    my $ghcver = `$ghc --version`; 
    153153    ($ghcver =~ /Glasgow.*\bversion\s*(\S+)/s) or die << '.';