Closed LegNeato closed 1 week ago
Fake news.
This is caused by another bug crashing the compiler and then me rerunning the command without the proper things set. For posterity, to run the deps of the build script in release (required to work around a bug) need:
For the record, the bug in question, causing @LegNeato to try to run a failing rustc
invocation without the proper env vars, was:
My code fails to compile because several environment variables set by Cargo (
CARGO_PKG_NAME
,CARGO_PKG_VERSION_MAJOR
,CARGO_PKG_VERSION_MINOR
,CARGO_PKG_VERSION_PATCH
, andCARGO_PKG_VERSION
) are unavailable.An example error:
I'm not doing anything fancy but I'm sure I am doing something wrong...this code in
rustc_codegen_spirv
hasn't changed in a long time. thegpu
crate builds fine on its own and theshared
crate builds file on its own but thecpu
crate fails. Even when I blank out all code except thebuild.rs
for thecpu
crate it still fails the same way.Here is my layout:
The build.rs:
I'm not sure how to debug this...