Compare commits

...

1 Commits

Author SHA1 Message Date
jif-oai
1a4ec06889 feat: disable unified_exec on windows 2026-01-21 17:59:40 +00:00
2 changed files with 13 additions and 2 deletions

View File

@@ -2537,11 +2537,19 @@ profile = "project"
)?;
assert!(config.features.enabled(Feature::ApplyPatchFreeform));
assert!(config.features.enabled(Feature::UnifiedExec));
if cfg!(target_os = "windows") {
assert!(!config.features.enabled(Feature::UnifiedExec));
} else {
assert!(config.features.enabled(Feature::UnifiedExec));
}
assert!(config.include_apply_patch_tool);
assert!(config.use_experimental_unified_exec_tool);
if cfg!(target_os = "windows") {
assert!(!config.use_experimental_unified_exec_tool);
} else {
assert!(config.use_experimental_unified_exec_tool);
}
Ok(())
}

View File

@@ -182,6 +182,9 @@ impl Features {
}
pub fn enable(&mut self, f: Feature) -> &mut Self {
if cfg!(target_os = "windows") && f == Feature::UnifiedExec {
return self;
}
self.enabled.insert(f);
self
}