Is there a generally approved way for an XS module to test for the existence of a C compiler before attempting to build?

I'd like to avoid test failures that result from the lack of a compiler without risking failing to build on a system that has an obscure compiler that the build system would find but my ad-hoc test might miss.

I guess I could just try running whatever $Config{cc} suggests. Are there any edge cases that that misses? Does $(CC) -o foo.o foo.c work just about everywhere?

--
Andy Armstrong, Hexten




Reply via email to