(self, config, extension)
return []
Get the flags to be added to the cflags for precompiled header support.
Get the flags to be added to the cflags for precompiled header support.
Get the flags to be added to the cflags for precompiled header support .
def _GetPchFlags(self, config, extension):
        """Get the flags to be added to the cflags for precompiled header support."""
        config = self._TargetConfig(config)
        # The PCH is only built once by a particular source file. Usage of PCH must
        # only be for the same language (i.e. C vs. C++), so only include the pch
        # flags when the language matches.
        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 []
def _GetPchFlags ( self , config , extension ) : config = self . _TargetConfig ( config ) # The PCH is only built once by a particular source file. Usage of PCH must # only be for the same language (i.e. C vs. C++), so only include the pch # flags when the language matches. 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 [ ]