P4 to Git Change 1265097 by smekhano@stas-rampitec-hsa on 2016/05/04 12:59:20
SWDEV-90709 - Complib: unquote command line arguments for -I and -D before passing to clang
Testing: smoke, precheckin
Reviewed by Evgeny Mankov
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#36 edit
[ROCm/clr commit: 88638b2b49]
This commit is contained in:
@@ -1078,6 +1078,11 @@ parseAllOptions(std::string& options, Options& Opts, bool linkOptsOnly)
|
||||
return false;
|
||||
}
|
||||
std::string vStr = oStr.substr(vPos1, std::string::npos);
|
||||
if ((vStr.size() > 2) &&
|
||||
(vStr.front() == '\"' && vStr.back() == '\"')) {
|
||||
// Unquote string
|
||||
vStr = vStr.substr(1, vStr.size() - 2);
|
||||
}
|
||||
Opts.clangOptions.push_back(oStr.substr(0,2) + vStr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user