Skip to content

Commit 51b50a2

Browse files
committed
Merge pull request #14 from rfranke/glob
Use glob pattern to find cross compilers
2 parents 91ea31c + 2a6385e commit 51b50a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OMEdit/OMEditGUI/Options/OptionsDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,15 +3520,15 @@ FMIPage::FMIPage(OptionsDialog *pOptionsDialog)
35203520
QStringList paths = QString(getenv("PATH")).split(":");
35213521
#endif
35223522
QStringList nameFilters;
3523-
nameFilters << "[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-g*cc";
3523+
nameFilters << "*-*-*-*cc";
35243524
QStringList compilers;
35253525
foreach (QString path, paths) {
35263526
QDir dir(path);
35273527
compilers << dir.entryList(nameFilters, QDir::Files | QDir::NoDotAndDotDot, QDir::Name);
35283528
}
35293529
mpPlatformsGroupBox = new QGroupBox(tr("Platforms"));
35303530
Label *pPlatformNoteLabel = new Label(tr("Note: The list of platforms is created by searching for programs in the PATH\n"
3531-
"matching regular expression \"[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-[a-zA-Z0-9_-]*-g*cc\"."));
3531+
"matching pattern \"*-*-*-*cc\"."));
35323532
mpLinkingComboBox = new QComboBox;
35333533
mpLinkingComboBox->addItem(tr("None"), "none");
35343534
mpLinkingComboBox->addItem(tr("Dynamic"), "dynamic");

0 commit comments

Comments
 (0)