|
|
@@ -126,7 +126,7 @@ static std::string fs_get_cache_directory() {
|
|
|
if (getenv("LLAMA_CACHE")) {
|
|
|
cache_directory = std::getenv("LLAMA_CACHE");
|
|
|
} else {
|
|
|
-#if defined(__linux__) || defined(__FreeBSD__)
|
|
|
+#if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX)
|
|
|
if (std::getenv("XDG_CACHE_HOME")) {
|
|
|
cache_directory = std::getenv("XDG_CACHE_HOME");
|
|
|
} else {
|