fix: remove compiler cache legacy implementation

Related-To: NEO-10679
Signed-off-by: Kapusta, Weronika <weronika.kapusta@intel.com>
This commit is contained in:
Weronika Kapusta
2024-04-08 15:37:30 +00:00
committed by Compute-Runtime-Automation
parent dc1b60c8e7
commit 864f42116c
18 changed files with 30 additions and 154 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2023 Intel Corporation
* Copyright (C) 2018-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -197,7 +197,7 @@ std::string RegistryReader::getSetting(const char *settingName, const std::strin
for (const auto &prefix : prefixString) {
std::string neoKey = prefix;
neoKey += settingName;
envValue = strcmp(processName.c_str(), neoKey.c_str()) ? IoFunctions::getenvPtr(neoKey.c_str()) : IoFunctions::getenvPtr("cl_cache_dir");
envValue = IoFunctions::getenvPtr(neoKey.c_str());
if (envValue) {
keyValue.assign(envValue);
type = prefixType[i];
@@ -214,7 +214,7 @@ std::string RegistryReader::getSetting(const char *settingName, const std::strin
std::string keyValue = value;
if (!(getSettingStringCommon(settingName, keyValue))) {
const char *envValue = strcmp(processName.c_str(), settingName) ? IoFunctions::getenvPtr(settingName) : IoFunctions::getenvPtr("cl_cache_dir");
const char *envValue = IoFunctions::getenvPtr(settingName);
if (envValue) {
keyValue.assign(envValue);
}