Adding compiler option to be passed to comgr

Change-Id: I6247cfc8f323e7ccbc95e35408ab3e8a55e16495


[ROCm/clr commit: 9943fcd81b]
This commit is contained in:
Jatin Chaudhary
2020-11-04 08:21:10 -05:00
committed by Jatin Chaudhary
parent d4457a2a8a
commit 3dc9013e52
@@ -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;