Adding compiler option to be passed to comgr

Change-Id: I6247cfc8f323e7ccbc95e35408ab3e8a55e16495
This commit is contained in:
Jatin Chaudhary
2020-11-04 08:21:10 -05:00
committato da Jatin Chaudhary
parent 97dd6c128b
commit 9943fcd81b
+9
Vedi File
@@ -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;