Adding compiler option to be passed to comgr

Change-Id: I6247cfc8f323e7ccbc95e35408ab3e8a55e16495


[ROCm/clr commit: 9943fcd81b]
This commit is contained in:
Jatin Chaudhary authored and Jatin Chaudhary committed 2021-01-18 06:25:44 -05:00
1 parent d4457a2a8a
commit 3dc9013e52
1 file changed
+9
@@ -670,6 +670,15 @@ bool Program::compileImplLC(const std::string& sourceCode,
}
}
// 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));
}
}
// Compile source to IR
char* binaryData = nullptr;
size_t binarySize = 0;