Skip to content

Commit 0182371

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 085b846 commit 0182371

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
@@ -126,8 +126,8 @@ By default, the cache is turned off, set the environment variable
126126
* `AMD_COMGR_CACHE`: When unset or set to 0, the cache is turned off.
127127
* `AMD_COMGR_CACHE_DIR`: When set to "", the cache is turned off. If assigned a
128128
value, that value is used as the path for cache storage. By default, it is
129-
directed to "$XDG_CACHE_HOME/comgr_cache" (which defaults to
130-
"$USER/.cache/comgr_cache" on Linux, and "%LOCALAPPDATA%\cache\comgr_cache"
129+
directed to "$XDG_CACHE_HOME/comgr" (which defaults to
130+
"$USER/.cache/comgr" on Linux, and "%LOCALAPPDATA%\cache\comgr"
131131
on Microsoft Windows).
132132
* `AMD_COMGR_CACHE_POLICY`: If assigned a value, the string is interpreted and
133133
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
@@ -98,7 +98,7 @@ StringRef getCacheDirectory() {
9898
return Result;
9999

100100
if (sys::path::cache_directory(Result)) {
101-
sys::path::append(Result, Twine("comgr_cache"));
101+
sys::path::append(Result, "comgr");
102102
return Result;
103103
}
104104

0 commit comments

Comments
 (0)