mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Fix for '-q' option in ocloc
Related-To: NEO-6425 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0a07ea94c7
commit
e9f0cb30e7
@@ -416,11 +416,14 @@ int OfflineCompiler::build() {
|
||||
void OfflineCompiler::updateBuildLog(const char *pErrorString, const size_t errorStringSize) {
|
||||
std::string errorString = (errorStringSize && pErrorString) ? std::string(pErrorString, pErrorString + errorStringSize) : "";
|
||||
if (errorString[0] != '\0') {
|
||||
if (buildLog.empty()) {
|
||||
buildLog.assign(errorString.c_str());
|
||||
} else {
|
||||
buildLog.append("\n");
|
||||
buildLog.append(errorString.c_str());
|
||||
bool errorFound = (errorString.find("Error") != std::string::npos) || (errorString.find("error") != std::string::npos);
|
||||
if (!isQuiet() || errorFound) {
|
||||
if (buildLog.empty()) {
|
||||
buildLog.assign(errorString.c_str());
|
||||
} else {
|
||||
buildLog.append("\n");
|
||||
buildLog.append(errorString.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user