Merge pull request #4438 from RalfJung/genmc-conditional-import

use more clever approach for genmc conditional import
This commit is contained in:
Ralf Jung 2025-07-02 13:42:11 +00:00 committed by GitHub
commit 143c05af80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,18 +9,9 @@ mod vector_clock;
pub mod weak_memory;
// Import either the real genmc adapter or a dummy module.
cfg_select! {
feature = "genmc" => {
mod genmc;
pub use self::genmc::{GenmcCtx, GenmcConfig};
}
_ => {
#[path = "genmc/dummy.rs"]
mod genmc_dummy;
use self::genmc_dummy as genmc;
pub use self::genmc::{GenmcCtx, GenmcConfig};
}
}
#[cfg_attr(not(feature = "genmc"), path = "genmc/dummy.rs")]
mod genmc;
pub use self::data_race_handler::{AllocDataRaceHandler, GlobalDataRaceHandler};
pub use self::genmc::{GenmcConfig, GenmcCtx};
pub use self::vector_clock::VClock;