From a915a1690e7d96a461ec29bed3ce243e2408f43d Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Thu, 24 Mar 2016 22:27:27 +0000 Subject: [PATCH] Fix typo: XDS -> XDG Patch by Robert Ma ! llvm-svn: 264352 --- llvm/lib/Support/Unix/Path.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index d85c37a..d5a31ca 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -586,12 +586,12 @@ static bool getDarwinConfDir(bool TempDir, SmallVectorImpl &Result) { } static bool getUserCacheDir(SmallVectorImpl &Result) { - // First try using XDS_CACHE_HOME env variable, + // First try using XDG_CACHE_HOME env variable, // as specified in XDG Base Directory Specification at // http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html - if (const char *XdsCacheDir = std::getenv("XDS_CACHE_HOME")) { + if (const char *XdgCacheDir = std::getenv("XDG_CACHE_HOME")) { Result.clear(); - Result.append(XdsCacheDir, XdsCacheDir + strlen(XdsCacheDir)); + Result.append(XdgCacheDir, XdgCacheDir + strlen(XdgCacheDir)); return true; } -- 2.7.4