Dist::Zilla::Plugin::ModuleBuild::OptionalXS is a Perl module, a Dist::Zilla plugin for building modules that have an XS component, but that are able to build and function even if there is no C compiler to build the XS component. Like Dist::Zilla::Plugin::ModuleBuild::XSorPP this module supports --pp and --xs options to override the C compiler detection. With --pp, the XS component won't be built, even if a C compiler is available. With --xs, Module::Build will try to build the XS component even if it thinks that a C compiler isn't available (this will almost definitely fail). USING WITH HEADERS AND PPPORT When using this plugin, c_source => 'c' will be added to your Module::Build options. Any include files that you want to use from your .xs files can be placed in the c directory. If you want to include ppport.h, add [PPPort] filename = c/ppport.h to your dist.ini. Requirements: