On some platforms the build fails "std::function is not found". The include is used in PassManager::IRPrinterConfig::enableIRPrinting.
This description doesn't make sense. PassPipelineRegistration is defined in PassRegistry.h which already includes functional. The only place that uses std::function in PassManager.h is enableIRPrinting. Can you update the description?