in reply to Re^2: Visual C 9.0 and dll hell
in thread Visual C 9.0 and dll hell
I'm not sure that's the best way to determine the compiler version, and I'm not even sure that my logic is correct anyway, but it doesn't seem to break anything for me, and it should override the existing $Config{ccversion} with the appropriate value.--- Config.pm_orig Mon Jul 23 13:49:44 2007 +++ Config.pm Sat May 10 19:33:34 2008 @@ -81,7 +81,11 @@ } if ($COMPILER_ENV{$key} && !$compiler_env_initialized++) { - if ($^O eq "MSWin32" && (_gcc_requested() || !find_prog(_orig_con +f("cc")))) { + if ($^O eq "MSWin32" && !_gcc_requested() && find_prog(_orig_c +onf("cc"))) { + my @ccversion = split / /, `cl 2>&1`; + _override("ccversion", $ccversion[7]); + } + elsif ($^O eq "MSWin32" && (_gcc_requested() || !find_prog(_orig_ +conf("cc")))) { if (my $gcc = find_prog("gcc")) { # assume MinGW or similar is available $gcc =~ s,\\,/,g;
|
|---|