feature: enable cl_cache by default on Linux

Resolves: NEO-4262

Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
This commit is contained in:
Kacper Kasper
2023-08-31 11:14:30 +00:00
committed by Compute-Runtime-Automation
parent 154530ad23
commit 269cba1659
8 changed files with 53 additions and 4 deletions

View File

@@ -17,6 +17,10 @@
#include <link.h>
namespace NEO {
int64_t defaultCacheEnabled() {
return 1l;
}
std::string makePath(const std::string &lhs, const std::string &rhs) {
if (lhs.size() == 0) {
return rhs;

View File

@@ -10,6 +10,7 @@
namespace NEO {
class SettingsReader;
int64_t defaultCacheEnabled();
std::string makePath(const std::string &lhs, const std::string &rhs);
bool checkDefaultCacheDirSettings(std::string &cacheDir, SettingsReader *reader);
time_t getFileModificationTime(const std::string &path);

View File

@@ -8,7 +8,9 @@
#include "shared/source/compiler_interface/os_compiler_cache_helper.h"
namespace NEO {
int64_t defaultCacheEnabled() {
return 0l;
}
std::string makePath(const std::string &lhs, const std::string &rhs) {
return lhs + rhs;
}