-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
stage1 caching #1494
stage1 caching #1494
Conversation
from master branch of blake2 reference implementation 320c325437539ae91091ce62efec1913cd8093c2
* add almost all the input parameter state to the hash - missing items are the detected MSVC installation on Windows and detected libc installation on POSIX - also missing are C files and .h files that libclang finds * artifacts are created in global cache directory instead of zig-cache. - exception: builtin.zig is still in zig-cache * zig run uses the new cache correctly * zig run uses execv on posix systems
Sadly we can't use hard links to output artifacts, because users could - even though they shouldn't - modify the output files, which would undermine the assumptions of the cache system. I shudder to think of the bug reports I would get if this happened. I'm thinking that we do one of two things:
After typing this out, it seems like (2) would be preferable. |
...zig run, zig build, compiler_rt.a, and builtin.a
does this make the tests run faster or something like that? because in the one issue you liked above it sais
|
There are several problems causing CI failures right now. One of them is that we hit the limit for how long tests can run. This shaves off about 10% of the time. Also I got tired of zig build taking a long time when working on self-hosted :) |
we need somewhere to put .o files and leave them while the user executes their program, so that stack traces on MacOS can find the .o files and get at the DWARF info. if we try to clean up old global tmp dir files, first of all that's a hard and complicated problem, and secondly it's not clear how that is better than dumping the .o file inside zig-cache locally.
and have it print llvm's internal timing info
See #1416
@cImport
and--cache on
for now)--library c --cache on
for now)see #1344
closes #881