Revert "Temporary WA for getcwd"

This reverts commit 966b979f989e5de7dce2fd4c5f6ddcf28b327f37.

Change-Id: Ic374d7c260e1fe81df9bdbe03e300f617c07e45a
This commit is contained in:
Koska, Andrzej 2018-09-10 10:24:29 +02:00 committed by sys_ocldev
parent 113052bd63
commit df6cd7e7d8
1 changed files with 1 additions and 8 deletions

View File

@ -32,7 +32,6 @@ const char *fSeparator = "\\";
#elif defined(__linux__)
const char *fSeparator = "/";
#endif
std::string cwd;
Environment *gEnvironment;
@ -43,19 +42,13 @@ std::string getRunPath() {
#if defined(__linux__)
res = getcwd(nullptr, 0);
#else
res = cwd;
res = _getcwd(nullptr, 0);
#endif
return res;
}
int main(int argc, char **argv) {
int retVal = 0;
std::string execPath(argv[0]);
char separator = '/';
if (execPath.find_last_of("\\") != std::string::npos)
separator = '\\';
cwd = execPath.substr(0, execPath.find_last_of(separator));
bool useDefaultListener = false;
std::string devicePrefix("skl");
std::string familyNameWithType("Gen9core");