summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-11 14:55:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-11 21:13:39 +0100
commitc544432c049ee93536386a77da1f1d9562ea3b48 (patch)
treec65b4deaa1df9a00a36f035f25fe57af38af73dc /opencl
parent2876eb7efc75dc6279986442ef930d5e39ee3ca1 (diff)
ensure cache dir is created
Change-Id: I708efa3dc4d9d145b1000d24cea4a4ff02628178 Reviewed-on: https://gerrit.libreoffice.org/84970 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/openclwrapper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx
index 8e2e531e5970..aea040c73036 100644
--- a/opencl/source/openclwrapper.cxx
+++ b/opencl/source/openclwrapper.cxx
@@ -776,8 +776,7 @@ bool switchOpenCLDevice(const OUString* pDevice, bool bAutoSelect, bool bForceEv
if (status < 0)
return false;
- OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/cache/");
- rtl::Bootstrap::expandMacros(url);
+ OUString url(OStringToOUString(getCacheFolder(), RTL_TEXTENCODING_UTF8));
OUString path;
osl::FileBase::getSystemPathFromFileURL(url,path);
ds_device aSelectedDevice = getDeviceSelection(path, bForceEvaluation);