use ExtUtils::CBuilder;
my $cbuilder = ExtUtils::CBuilder->new();
if ($cbuilder->have_compiler) {
print "Compiler is available.\n";
} else {
print "No compiler available.\n";
}
if ($cbuilder->have_cplusplus) {
print "C++ available.\n";
} else {
print "No C++ available.\n";
}
pixi run check-compiler outputs:
ld: unknown option: -Wl,-pie
No compiler available.
ld: unknown option: -Wl,-pie
No C++ available.
Using the system interpreter with perl test_c_compiler.pl outside the environment:
Solution to issue cannot be found in the documentation.
Issue
Likely somewhat related to #59 - I recently switched to from osx-amd64 to osx-arm64, and I am seeing familar errors again π.
pixi.toml
test_c_compiler.pl
pixi run check-compiler
outputs:Using the system interpreter with
perl test_c_compiler.pl
outside the environment:Installed packages
Environment info