Skip to content
Snippets Groups Projects
Commit 78be6445 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Fix non-windows debug build


MSVCParser is included for tests

Change-Id: Id5e54e147d87b1cbc78efbaa0c61bab5991793c3
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 096daac0
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,10 @@
#include "msvcparser.h"
#include "projectexplorerconstants.h"
#ifdef Q_OS_WIN
#include <utils/winutils.h>
#endif
static const char FILE_POS_PATTERN[] = "(cl|LINK|.+) : ";
static const char ERROR_PATTERN[] = "[A-Z]+\\d\\d\\d\\d ?:";
......@@ -54,8 +57,12 @@ static QPair<Utils::FileName, int> parseFileName(const QString &input)
}
}
}
return qMakePair(Utils::FileName::fromUserInput(Utils::normalizePathName(fileName)),
linenumber);
#ifdef Q_OS_WIN
const QString normalized = Utils::normalizePathName(fileName);
#else
const QString normalized = fileName;
#endif
return qMakePair(Utils::FileName::fromUserInput(normalized), linenumber);
}
using namespace ProjectExplorer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment