mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
feat: disable unified_exec on windows
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user