-
Notifications
You must be signed in to change notification settings - Fork 166
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
Don't store build check rmeta #1200
Conversation
Note: I'm not sure whether |
This ensures the `.rmeta` files generated by `can_compile` are not written to the build output. Those metadata files can create determinism and cache invalidation issues in some build systems. Instead the output -- since it is never actually read -- is written to `/dev/null`.
bcb1098
to
330bcc0
Compare
Note 2: as far as I can tell the metadata is not being read anymore since #730 |
Thanks for the PR! This looks reasonable to me, though I also don't know how this works on Windows. That said, the Windows CI appears to have passed. Is Windows is recognizing /dev/null for compatibility? |
If the CI runs under WSL then most likely yes. Also I see the build script uses various sorts of pipes for stdin, so I guess using |
The Windows CI doesn't run in WSL. Windows has its own version of pipes and Rust's What if we instead used |
That sounds good! I'll push a fix tomorrow when I have some time. Thanks for the quick feedback! |
@sunfishcode PTAL! |
Thanks! |
This ensures the `.rmeta` files generated by `can_compile` are not written to the build output. Those metadata files can create determinism and cache invalidation issues in some build systems. Instead the output -- since it is never actually read -- is written to `/dev/null`.
This ensures the `.rmeta` files generated by `can_compile` are not written to the build output. Those metadata files can create determinism and cache invalidation issues in some build systems. Instead the output -- since it is never actually read -- is written to `/dev/null`.
This is now released in rustix 0.38.39. |
This ensures the `.rmeta` files generated by `can_compile` are not written to the build output. Those metadata files can create determinism and cache invalidation issues in some build systems. Instead the output -- since it is never actually read -- is written to `/dev/null`. This is a port of bytecodealliance/rustix#1200 to cap-std.
* Don't store build check rmeta This ensures the `.rmeta` files generated by `can_compile` are not written to the build output. Those metadata files can create determinism and cache invalidation issues in some build systems. Instead the output -- since it is never actually read -- is written to `/dev/null`. This is a port of bytecodealliance/rustix#1200 to cap-std. * Update CI for wasm32-wasip1.
Fixes #1199
This ensures the
.rmeta
files generated bycan_compile
are not written to the build output. Those metadata files can create determinism and cache invalidation issues in some build systems.Instead the output -- since it is never actually read -- is written to
/dev/null
.