'Get the flags to be added to the cflags for precompiled header support.'

def _GetPchFlags(self, config, extension):

    config = self._TargetConfig(config)
    if self.msvs_precompiled_header[config]:
        source_ext = os.path.splitext(self.msvs_precompiled_source[config])[1]
        if _LanguageMatchesForPch(source_ext, extension):
            pch = self.msvs_precompiled_header[config]
            pchbase = os.path.split(pch)[1]
            return [('/Yu' + pch), ('/FI' + pch), (('/Fp${pchprefix}.' + pchbase) + '.pch')]
    return []
