aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2020-01-23 21:56:53 -0500
committerMichael Dusan <michael.dusan@gmail.com>2020-01-23 21:59:28 -0500
commitb54040d394830b847a7d64babac23f29fda8d47c (patch)
tree1e7b02d54460e79cffa71b7f97042f543e5ff3ac /src/main.cpp
parent357f42da6c2f158fff2afa28a56b7e0e7a8a5963 (diff)
downloadzig-b54040d394830b847a7d64babac23f29fda8d47c.tar.gz
zig-b54040d394830b847a7d64babac23f29fda8d47c.zip
stage1: make sure to create native_libc.txt dir
- fix regression from #4186
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d89ac352a5..fd50c1b145 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -141,15 +141,15 @@ static int print_libc_usage(const char *arg0, FILE *file, int return_code) {
"You can save this into a file and then edit the paths to create a cross\n"
"compilation libc kit. Then you can pass `--libc [file]` for Zig to use it.\n"
"\n"
- "When compiling natively and no `--libc` argument provided, Zig automatically\n"
- "creates zig-cache/native_libc.txt so that it does not have to detect libc\n"
- "on every invocation. You can remove this file to have Zig re-detect the\n"
- "native libc.\n"
+ "When compiling natively and no `--libc` argument provided, Zig will create\n"
+ "`%s/native_libc.txt`\n"
+ "so that it does not have to detect libc on every invocation. You can remove\n"
+ "this file to have Zig re-detect the native libc.\n"
"\n\n"
"Usage: %s libc [file]\n"
"\n"
"Parse a libc installation text file and validate it.\n"
- , arg0, arg0);
+ , arg0, buf_ptr(get_global_cache_dir()), arg0);
return return_code;
}