Use POCL_CACHE_DIR instead of writableHome...Hook

This commit is contained in:
2025-12-09 12:05:35 +01:00
parent c952e69f73
commit 87be9325db
2 changed files with 12 additions and 8 deletions

View File

@@ -2,7 +2,6 @@
runCommand,
pocl,
clinfo,
writableTmpDirAsHomeHook,
}:
runCommand "clinfo-pocl"
@@ -10,12 +9,14 @@ runCommand "clinfo-pocl"
nativeBuildInputs = [
clinfo
pocl
writableTmpDirAsHomeHook
];
requiredSystemFeatures = [ "sys-devices" ];
env.POCL_DEBUG = "error,warn";
env = {
POCL_DEBUG = "error,warn";
POCL_CACHE_DIR = "/build/pocl_cache";
};
}
''
echo $OCL_ICD_VENDORS