cranelift: Native feature detection for RISC-V (#5044)

* cranelift: Native feature detection for RISC-V

* cranelift: Typo fix

Thanks @cfallin
This commit is contained in:
Afonso Bordado
2022-10-11 20:29:03 +01:00
committed by GitHub
parent d68ca3711b
commit 86331b9b37
3 changed files with 54 additions and 27 deletions

View File

@@ -14,7 +14,7 @@ edition.workspace = true
cranelift-codegen = { workspace = true, default-features = false }
target-lexicon = { workspace = true }
[target.'cfg(target_arch = "s390x")'.dependencies]
[target.'cfg(any(target_arch = "s390x", target_arch = "riscv64"))'.dependencies]
libc = "0.2.95"
[features]