File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -693,13 +693,18 @@ public final class SwiftTargetBuildDescription {
693
693
}
694
694
695
695
public static func checkSupportedFrontendFlags( flags: Set < String > , fs: FileSystem ) -> Bool {
696
+ // The new driver is not supported on Windows, yet, so we should avoid calling into it there.
697
+ #if os(Windows)
698
+ return false
699
+ #else
696
700
do {
697
701
let executor = try SPMSwiftDriverExecutor ( resolver: ArgsResolver ( fileSystem: fs) , fileSystem: fs, env: [ : ] )
698
702
let driver = try Driver ( args: [ " swiftc " ] , executor: executor)
699
703
return driver. supportedFrontendFlags. intersection ( flags) == flags
700
704
} catch {
701
705
return false
702
706
}
707
+ #endif
703
708
}
704
709
705
710
/// The arguments needed to compile this target.
You can’t perform that action at this time.
0 commit comments