File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
IGC/AdaptorOCL/ocl_igc_interface/impl Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ static llvm::Optional<std::string> MakeTemporaryCMSource(
181
181
182
182
static bool processCmSrcOptions (
183
183
llvm::SmallVectorImpl<const char *> &userArgs,
184
+ std::string optname,
184
185
std::string &inputFile) {
185
186
186
- std::string optname = " -cm-src" ;
187
187
auto toErase = std::find_if (userArgs.begin (), userArgs.end (),
188
188
[&optname](const auto & Item) { return std::strcmp (Item, optname.c_str ()) == 0 ; });
189
189
if (toErase != userArgs.end ()) {
@@ -240,7 +240,8 @@ static std::vector<const char*>
240
240
cmfeDefaultArchOpt ? cmfeDefaultArchOpt.getValue () : " SKL" ;
241
241
242
242
std::string inputFile = " src.cm" ;
243
- isMemFile = processCmSrcOptions (userArgs, inputFile);
243
+ isMemFile = processCmSrcOptions (userArgs, " -cm-src" , inputFile) ||
244
+ processCmSrcOptions (userArgs, " -s" , inputFile);
244
245
if (!isMemFile) {
245
246
auto OptSrc = MakeTemporaryCMSource (Src, inputFile, outI);
246
247
if (!OptSrc)
You can’t perform that action at this time.
0 commit comments