Skip to content

Commit 29e5be8

Browse files
committed
[Review] Rename cache directory from comgr_cache to comgr
The cache is anyways under the default cache directory "$XDG_CACHE_HOME"
1 parent 130a496 commit 29e5be8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

amd/comgr/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ By default, the cache is turned off, set the environment variable
137137
* `AMD_COMGR_CACHE`: When unset or set to 0, the cache is turned off.
138138
* `AMD_COMGR_CACHE_DIR`: When set to "", the cache is turned off. If assigned a
139139
value, that value is used as the path for cache storage. By default, it is
140-
directed to "$XDG_CACHE_HOME/comgr_cache" (which defaults to
141-
"$USER/.cache/comgr_cache" on Linux, and "%LOCALAPPDATA%\cache\comgr_cache"
140+
directed to "$XDG_CACHE_HOME/comgr" (which defaults to
141+
"$USER/.cache/comgr" on Linux, and "%LOCALAPPDATA%\cache\comgr"
142142
on Microsoft Windows).
143143
* `AMD_COMGR_CACHE_POLICY`: If assigned a value, the string is interpreted and
144144
applied to the cache pruning policy. The cache is pruned only upon program

amd/comgr/src/comgr-env.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ StringRef getCacheDirectory() {
297297
return Result;
298298

299299
if (sys::path::cache_directory(Result)) {
300-
sys::path::append(Result, Twine("comgr_cache"));
300+
sys::path::append(Result, "comgr");
301301
return Result;
302302
}
303303

0 commit comments

Comments
 (0)