Function simics_build_utils::emit_cfg_directives

source ·
pub fn emit_cfg_directives() -> Result<()>
Expand description

Emit CFG directives for the version of the Simics API being compiled against.

For example, simics_version = “6.0.185” and simics_version = “6”. Both a full triple version and a major version directive is emitted.

This function can be used in the build.rs script of a crate that depends on the simics crate to conditionally enable experimental features in its own code.