We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9cee21 commit 02915d0Copy full SHA for 02915d0
dist/ExtUtils-CBuilder/t/03-cplusplus.t
@@ -26,7 +26,18 @@ else {
26
plan tests => 7;
27
}
28
29
-ok $b, "created EU::CB object";
+{
30
+ # GH #23146
31
+ my $fake_cc = File::Spec->rel2abs(File::Spec->catfile(qw(some directory what doesnt exist), 'cc'));
32
+ my $b = ExtUtils::CBuilder->new(
33
+ quiet => $quiet,
34
+ config => {
35
+ cc => $fake_cc,
36
+ },
37
+ );
38
+
39
+ is $b->{config}{cxx}, $fake_cc, "did not search PATH for C++ compiler when given absolute path to C compiler";
40
+}
41
42
ok $b->have_cplusplus, "have_cplusplus";
43
0 commit comments