QList<HeaderPath> MsvcToolChain::systemHeaderPaths() const { if (m_headerPaths.isEmpty()) { Utils::Environment env(m_lastEnvironment); addToEnvironment(env); foreach (const QString &path, env.value("INCLUDE").split(QLatin1Char(';'))) m_headerPaths.append(HeaderPath(path, HeaderPath::GlobalHeaderPath)); }
Utils::Environment BuildConfiguration::baseEnvironment() const { Utils::Environment result; if (useSystemEnvironment()) result = Utils::Environment::systemEnvironment(); addToEnvironment(result); target()->kit()->addToEnvironment(result); return result; }
QByteArray MsvcToolChain::predefinedMacros() const { if (m_predefinedMacros.isEmpty()) { Utils::Environment env(m_lastEnvironment); addToEnvironment(env); m_predefinedMacros = msvcPredefinedMacros(env); } return m_predefinedMacros; }
QList<HeaderPath> AbstractMsvcToolChain::systemHeaderPaths(const QStringList &cxxflags, const Utils::FileName &sysRoot) const { Q_UNUSED(cxxflags); Q_UNUSED(sysRoot); if (m_headerPaths.isEmpty()) { Utils::Environment env(m_lastEnvironment); addToEnvironment(env); foreach (const QString &path, env.value(QLatin1String("INCLUDE")).split(QLatin1Char(';'))) m_headerPaths.append(HeaderPath(path, HeaderPath::GlobalHeaderPath)); }
QList<HeaderPath> GccToolChain::systemHeaderPaths() const { if (m_headerPathes.isEmpty()) { // Using a clean environment breaks ccache/distcc/etc. Utils::Environment env = Utils::Environment::systemEnvironment(); addToEnvironment(env); m_headerPathes = gccHeaderPathes(m_compilerPath, env.toStringList()); } return m_headerPathes; }
QByteArray GccToolChain::predefinedMacros() const { if (m_predefinedMacros.isEmpty()) { // Using a clean environment breaks ccache/distcc/etc. Utils::Environment env = Utils::Environment::systemEnvironment(); addToEnvironment(env); m_predefinedMacros = gccPredefinedMacros(m_compilerPath, env.toStringList()); } return m_predefinedMacros; }
Abi GccToolChain::targetAbi() const { if (!m_targetAbi.isValid()) { Utils::Environment env = Utils::Environment::systemEnvironment(); addToEnvironment(env); m_targetAbi = guessGccAbi(m_compilerPath, env.toStringList()); m_supports64Bit = (m_targetAbi.wordWidth() == 64); if (m_targetAbi.wordWidth() == 64 && m_forcedTo32Bit) m_targetAbi = Abi(m_targetAbi.architecture(), m_targetAbi.os(), m_targetAbi.osFlavor(), m_targetAbi.binaryFormat(), 32); if (displayName() == typeName()) setDisplayName(defaultDisplayName()); } return m_targetAbi; }