Use capstone to validate precise-output tests (#5780)
Use the capstone library to disassemble precise-output tests, in addition to pretty-printing their vcode.
This commit is contained in:
@@ -14,7 +14,9 @@ edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
arrayvec = "0.7"
|
||||
anyhow = { workspace = true, optional = true }
|
||||
bumpalo = "3"
|
||||
capstone = { workspace = true, optional = true }
|
||||
cranelift-codegen-shared = { path = "./shared", version = "0.94.0" }
|
||||
cranelift-entity = { workspace = true }
|
||||
cranelift-bforest = { workspace = true }
|
||||
@@ -55,6 +57,10 @@ std = []
|
||||
# compatibility as a no-op.
|
||||
core = []
|
||||
|
||||
# Enable the `to_capstone` method on TargetIsa, for constructing a Capstone
|
||||
# context, and the `disassemble` method on `MachBufferFinalized`.
|
||||
disas = ["anyhow", "capstone"]
|
||||
|
||||
# This enables some additional functions useful for writing tests, but which
|
||||
# can significantly increase the size of the library.
|
||||
testing_hooks = []
|
||||
|
||||
Reference in New Issue
Block a user