Skip to content

Commit

Permalink
Merge pull request #14 from rfranke/glob
Browse files Browse the repository at this point in the history
Use glob pattern to find cross compilers
  • Loading branch information
adeas31 committed Mar 22, 2016
2 parents 91ea31c + 2a6385e commit 51b50a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Options/OptionsDialog.cpp
Expand Up @@ -3520,15 +3520,15 @@ FMIPage::FMIPage(OptionsDialog *pOptionsDialog)
QStringList paths = QString(getenv("PATH")).split(":");
#endif
QStringList nameFilters;
nameFilters << "[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-g*cc";
nameFilters << "*-*-*-*cc";
QStringList compilers;
foreach (QString path, paths) {
QDir dir(path);
compilers << dir.entryList(nameFilters, QDir::Files | QDir::NoDotAndDotDot, QDir::Name);
}
mpPlatformsGroupBox = new QGroupBox(tr("Platforms"));
Label *pPlatformNoteLabel = new Label(tr("Note: The list of platforms is created by searching for programs in the PATH\n"
"matching regular expression \"[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-g*cc\"."));
"matching pattern \"*-*-*-*cc\"."));
mpLinkingComboBox = new QComboBox;
mpLinkingComboBox->addItem(tr("None"), "none");
mpLinkingComboBox->addItem(tr("Dynamic"), "dynamic");
Expand Down

0 comments on commit 51b50a2

Please sign in to comment.