Make miette optional in cranelift-codegen, as it's only used when rebuilding isle

This commit is contained in:
Benjamin Bouvier
2021-12-01 11:24:59 +01:00
parent 9186713163
commit b34788ae8a

View File

@@ -36,7 +36,7 @@ criterion = "0.3"
[build-dependencies]
cranelift-codegen-meta = { path = "meta", version = "0.78.0" }
isle = { path = "../isle/isle", version = "0.78.0", optional = true }
miette = { version = "3", features = ["fancy"] }
miette = { version = "3", features = ["fancy"], optional = true }
sha2 = "0.9.8"
[features]
@@ -91,7 +91,7 @@ regalloc-snapshot = ["bincode", "regalloc/enable-serde"]
souper-harvest = ["souper-ir", "souper-ir/stringify"]
# Recompile ISLE DSL source files into their generated Rust code.
rebuild-isle = ["isle", "cranelift-codegen-meta/rebuild-isle"]
rebuild-isle = ["isle", "miette", "cranelift-codegen-meta/rebuild-isle"]
# A hack to skip the ISLE-rebuild logic when testing for determinism
# with the "Meta deterministic check" CI job.