forked from mbarbon/extutils-cppguess
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
(Edit) This is on Windows but seems to affect other systems. The matrix in cpan testers gives an overview.
http://matrix.cpantesters.org/?dist=ExtUtils-CppGuess+0.27
Commit 5e47504 added some mocked results and an override for ExtUtils::CppGuess::_capture
but it seems not to trap all the variations.
The final test config at
extutils-cppguess/t/002_icpp.t
Lines 135 to 144 in bfbed58
[ | |
{ cc => "cc", config => { ccflags => '' } }, | |
{ | |
is_sunstudio => 0, | |
is_msvc => undef, is_gcc => 1, is_clang => 0, | |
compiler_command => 'g++ -xc++', | |
linker_flags => '-lstdc++', | |
}, | |
{ "cc --version" => "cc (Debian 12.2.0-14) 12.2.0" }, | |
], |
extutils-cppguess/t/002_icpp.t
Line 158 in bfbed58
my %got = map {$_ => $guess->$_} @METHODS; |
I've not been able to track down the root cause but it seems related to the checks at
extutils-cppguess/lib/ExtUtils/CppGuess.pm
Lines 288 to 300 in bfbed58
if (!%guess) { | |
my $v1 = `$c_compiler -v`; | |
my $v2 = `$c_compiler -V`; | |
my $v3 = `$c_compiler --version`; | |
my $os = $self->_os; | |
die <<EOF; | |
Unable to determine a C++ compiler for '$c_compiler' on $os | |
Version attempts: | |
-v: '$v1' | |
-V: '$v2' | |
--version: '$v3' | |
EOF | |
} |
Metadata
Metadata
Assignees
Labels
No labels