-
Notifications
You must be signed in to change notification settings - Fork 12
Build fails when RUSTC environment variable is set to nightly #68
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
Comments
I'm sure this is caused by recent changes in nightly rust. This means that those changes probably would arrive in stable soon, so we should fix this before we have this problem on stable as well. |
I found the commit that this error was introduced: Based on their intention, I think we should update our target specification json |
Looking at LLVM's target triple lists, it has enum entries for shader stages in |
One workaround I found for potential fix is to set RUSTC environment variable before invoking spirv_builder_cli at here Currently this works:
If we can't update, we should set rustc version to whatever before that commit. |
I discovered that if I edit target specification under .cache directory and set the os to "vulkan" from "unknown", this error is printed:
|
Hmm, I discovered that manually setting RUSTC to latest nightly causes other part of build process to fail as well on fresh install. |
How did you set your |
Also does simply |
@Firestar99 If cargo gpu command is executed from build.rs, it is set |
@Firestar99 Just tested if |
Uh oh!
There was an error while loading. Please reload this page.
I discovered that running
cargo build
with rustc environment variable is set to "/home/tmvkrpxl0/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc" (path to nightly rustc on my pc) fails with below error:This is problematic on projects that uses nightly. My project is currently set up in this way:
root (workspace root that uses nightly rust):
ㄴ game (contains build.rs that runs cargo gpu command)
ㄴ macros
ㄴ shader-path (compiled by cargo-gpu)
ㄴ shader-rasterizer (compiled by cargo-gpu)
ㄴ types-shared
ㄴ utils
Since the workspace root uses nightly, it sets rustc version to nightly and fails to compile with same error.
The text was updated successfully, but these errors were encountered: