-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: document zig compiler commands and environment variables #11394
Comments
running |
libcs, which are compiled lazily upon request, belong into global cache. Same goes for compiler_rt routines.
Yes. See my PR and surrounding code for planned changes, although not finalized (outstanding question on libstd wrt. TmpDir https://github.com/ziglang/zig/pull/11743/files#diff-d924ca21d81d7d5a59eb9e10d3e2689c4c58a7e28e6ecce6a064701666f5a730R2582, exposing functionality in libstd etc).
Environment variables are quick hacks, whereas a build.zig is a declarative user-configurable build system library. There is a proper interface for setting the cache_dir and you can hack around with environment variables all you want by reading them with some code. To me these things belong into a guide on the build systems, which are tightly connected to the cache system. And not into the language reference. However, for now it might make sense to add them nevertheless into a dedicated section and later move them. UPDATE: Some basic overview should go into the langref though. This feels like details creep, which does not keep focus on the language aspects though. |
@matu3ba Thanks for the clarification.
|
Without a Though personally I feel like adding stuff to |
Currently there is no documentation about the
zig
command (excludingzig build
documented in the language reference).There is also no documentation about supported environment variables:
ZIG_LIB_DIR
,ZIG_GLOBAL_CACHE_DIR
,ZIG_LOCAL_CACHE_DIR
andZIG_LIBC
.Another problem is the interaction of the global and local cache:
ZIG_LOCAL_CACHE_DIR
but
zig build
ignores it?Thanks.
The text was updated successfully, but these errors were encountered: