SWDEV-283267 - Fix a bug where rocclr appends compiler options twice

Change-Id: I54ca6e8458cf6414c263df7a8bf61f7ce39a64df
This commit is contained in:
cjatin authored and Maneesh Gupta committed 2021-08-22 23:56:07 -07:00
1 parent a9a1e21445
commit 228662bf3f
1 file changed
-8
-8
View File
@@ -713,14 +713,6 @@ bool Program::compileImplLC(const std::string& sourceCode,
buildLog_ += "Warning: opening the file to dump the OpenCL source failed.\n";
}
}
// Append Options provided by user to driver options
if (isHIP()) {
if (options->origOptionStr.size()) {
std::istringstream userOptions{options->origOptionStr};
std::copy(std::istream_iterator<std::string>(userOptions),
std::istream_iterator<std::string>(), std::back_inserter(driverOptions));
}
}
// Append Options provided by user to driver options
if (isHIP()) {