Add target_feature = "gc" for Wasm
This commit is contained in:
parent
b889870082
commit
4ee01c4e4c
3 changed files with 6 additions and 0 deletions
|
|
@ -266,6 +266,10 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
|
|||
"leoncasa" => Some(LLVMFeature::new("hasleoncasa")),
|
||||
s => Some(LLVMFeature::new(s)),
|
||||
},
|
||||
Arch::Wasm32 | Arch::Wasm64 => match s {
|
||||
"gc" if major < 22 => None,
|
||||
s => Some(LLVMFeature::new(s)),
|
||||
},
|
||||
Arch::X86 | Arch::X86_64 => {
|
||||
match s {
|
||||
"sse4.2" => Some(LLVMFeature::with_dependencies(
|
||||
|
|
|
|||
|
|
@ -745,6 +745,7 @@ static WASM_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
|
|||
("bulk-memory", Stable, &[]),
|
||||
("exception-handling", Unstable(sym::wasm_target_feature), &[]),
|
||||
("extended-const", Stable, &[]),
|
||||
("gc", Unstable(sym::wasm_target_feature), &["reference-types"]),
|
||||
("multivalue", Stable, &[]),
|
||||
("mutable-globals", Stable, &[]),
|
||||
("nontrapping-fptoint", Stable, &[]),
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
|
|||
`frecipe`
|
||||
`frintts`
|
||||
`fxsr`
|
||||
`gc`
|
||||
`gfni`
|
||||
`guarded-storage`
|
||||
`hard-float`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue