aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2020-01-15 07:34:53 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-15 13:42:12 -0500
commit0a410519559788598fcf698013c1b6389d80c67c (patch)
tree958520d6a5ce9908722d508edb7768e4e3a489fd /src/link.cpp
parent8d9d4a065820bfce0395465834cb9b7e01509a12 (diff)
downloadzig-0a410519559788598fcf698013c1b6389d80c67c.tar.gz
zig-0a410519559788598fcf698013c1b6389d80c67c.zip
stage1: move local native_libc.txt to global
Automatic creation of `native_libc.txt` now occurs only in global cache. Manual creation/placement into local cache is supported. closes #3975
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp
index e0deb0d413..61a5ad5664 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1962,7 +1962,7 @@ static const char *get_def_lib(CodeGen *parent, const char *name, Buf *def_in_fi
exit(1);
}
- Buf *cache_dir = get_stage1_cache_path();
+ Buf *cache_dir = get_global_cache_dir();
Buf *o_dir = buf_sprintf("%s" OS_SEP CACHE_OUT_SUBDIR, buf_ptr(cache_dir));
Buf *manifest_dir = buf_sprintf("%s" OS_SEP CACHE_HASH_SUBDIR, buf_ptr(cache_dir));