CompilerPtr CompilersDetectorManager::Locate(const wxString& folder) { m_compilersFound.clear(); ICompilerLocator::Vect_t::iterator iter = m_detectors.begin(); for(; iter != m_detectors.end(); ++iter) { CompilerPtr comp = (*iter)->Locate(folder); if(comp) { MSWFixClangToolChain(comp); return comp; } } return NULL; }
bool CompilersDetectorManager::Locate() { m_compilersFound.clear(); ICompilerLocator::Vect_t::iterator iter = m_detectors.begin(); for(; iter != m_detectors.end(); ++iter) { if((*iter)->Locate()) { m_compilersFound.insert( m_compilersFound.end(), (*iter)->GetCompilers().begin(), (*iter)->GetCompilers().end()); } } for(size_t i = 0; i < m_compilersFound.size(); ++i) { MSWFixClangToolChain(m_compilersFound.at(i), m_compilersFound); } return !m_compilersFound.empty(); }
bool CompilersDetectorManager::Locate() { // Apply the enviroment before searching for compilers // Some of the locators are relying on PATH environment // variable (e.g. MinGW) EnvSetter env; m_compilersFound.clear(); ICompilerLocator::Vect_t::iterator iter = m_detectors.begin(); for(; iter != m_detectors.end(); ++iter) { if((*iter)->Locate()) { m_compilersFound.insert( m_compilersFound.end(), (*iter)->GetCompilers().begin(), (*iter)->GetCompilers().end()); } } for(size_t i = 0; i < m_compilersFound.size(); ++i) { MSWFixClangToolChain(m_compilersFound.at(i), m_compilersFound); } return !m_compilersFound.empty(); }