build: allow use cl_cache in ocloc

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2024-06-13 11:42:03 +00:00
committed by Compute-Runtime-Automation
parent cddec0f78b
commit ad374fbd8f
3 changed files with 11 additions and 3 deletions

View File

@@ -607,14 +607,12 @@ int OfflineCompiler::buildSourceCode() {
}
genBinary = cache->loadCachedBinary(genHash, genBinarySize).release();
if (genBinary) {
bool isZebin = isDeviceBinaryFormat<DeviceBinaryFormat::zebin>(ArrayRef<uint8_t>(reinterpret_cast<uint8_t *>(genBinary), genBinarySize));
if (!generateDebugInfo || isZebin) {
return retVal;
}
debugDataBinary = cache->loadCachedBinary(dbgHash, debugDataBinarySize).release();
if (debugDataBinary) {
return retVal;
}