-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
add spirv target
#150851
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
base: main
Are you sure you want to change the base?
add spirv target
#150851
Conversation
This comment has been minimized.
This comment has been minimized.
|
Correct me if I'm wrong, but this would need to enable |
|
... Yeah, I did some testing today to see if I can get core to compile. After it did (it only compiles into rlib, so mostly fine), I tried this test: pub enum A {
Foo(u8),
Bar(u32),
}
#[unsafe(no_mangle)]
pub fn test(x: &mut A) -> u8 {
match x {
A::Foo(x) => *x,
A::Bar(b) => *b as u8 + 2,
}
}Which fails with: Maybe LLVM could be updated in the future such that |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
| // Allow `cdylib` crate type. | ||
| dynamic_linking: true, | ||
| obj_is_bitcode: true, | ||
| only_cdylib: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should also set is_like_gpu: true?
|
☔ The latest upstream changes (presumably #151144) made this pull request unmergeable. Please resolve the merge conflicts. |
This is obviously a draft in an early stage, but the amount of work needed to get it working was surprisingly little.
TODO:
corebuildssrc/bootstrap/download-ci-llvm-stampbuild-manifestplatform-support