diff --git a/Cargo.toml b/Cargo.toml index 66721df..6b7ca04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ # cargo-features = ["profile-rustflags"] +cargo-features = ["codegen-backend"] [package] name = "organic" @@ -102,3 +103,10 @@ debug = true inherits = "release" lto = true strip = true + +[profile.dev] +codegen-backend = "cranelift" + +[profile.dev.package."*"] +codegen-backend = "llvm" +opt-level = 3 diff --git a/src/context/global_settings.rs b/src/context/global_settings.rs index 8eee75c..d02693d 100644 --- a/src/context/global_settings.rs +++ b/src/context/global_settings.rs @@ -71,9 +71,7 @@ pub struct EntityDefinition<'a> { impl<'g, 's> GlobalSettings<'g, 's> { fn new() -> GlobalSettings<'g, 's> { - debug_assert!( - DEFAULT_ORG_ENTITIES.is_sorted_by(|a, b| b.name.len().partial_cmp(&a.name.len())) - ); + debug_assert!(DEFAULT_ORG_ENTITIES.is_sorted_by(|a, b| a.name.len() <= b.name.len())); GlobalSettings { radio_targets: Vec::new(), file_access: &LocalFileAccessInterface {