mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "Fix for '-q' option in ocloc"
This reverts commit e9f0cb30e7.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6f4e7b98dc
commit
ef9a4fffcd
@@ -416,14 +416,11 @@ 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') {
|
||||
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());
|
||||
}
|
||||
if (buildLog.empty()) {
|
||||
buildLog.assign(errorString.c_str());
|
||||
} else {
|
||||
buildLog.append("\n");
|
||||
buildLog.append(errorString.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user