Enable basic block checks through a feature. (#856)

This allows prefixing BB-specific code with "#[cfg(feature = "basic-blocks")]",
which avoids having to reference an environment variable across the codebase.

The easiest way to enable the feature locally is to add the arguments
'features = ["basic-blocks"]' to the workspace Cargo.toml, where it defines
the cranelift-codegen dependency.
This commit is contained in:
Sean Stangl
2019-07-18 09:59:28 -06:00
committed by GitHub
parent 084e279def
commit 9b97ddf29a
2 changed files with 6 additions and 8 deletions

View File

@@ -62,6 +62,9 @@ riscv = []
# For dependent crates that want to serialize some parts of cranelift
enable-serde = ["serde"]
# Temporary feature that enforces basic block semantics.
basic-blocks = []
[badges]
maintenance = { status = "experimental" }
travis-ci = { repository = "CraneStation/cranelift" }