@@ -57,19 +57,20 @@ extension Driver {
57
57
fileSystem: FileSystem ,
58
58
executor: DriverExecutor , env: [ String : String ] )
59
59
throws -> Set < String > {
60
- // If libSwiftScan library is present, use it to query
61
- let swiftScanLibPath = try Self . getScanLibPath ( of: toolchain,
62
- hostTriple: hostTriple,
63
- env: env)
64
-
65
- if fileSystem. exists ( swiftScanLibPath) {
66
- let libSwiftScanInstance = try SwiftScan ( dylib: swiftScanLibPath)
67
- if libSwiftScanInstance. canQuerySupportedArguments ( ) {
68
- return try libSwiftScanInstance. querySupportedArguments ( )
69
- }
70
- }
60
+ // TODO: Once we are sure libSwiftScan is deployed across supported platforms and architectures
61
+ // we should deploy it here.
62
+ // let swiftScanLibPath = try Self.getScanLibPath(of: toolchain,
63
+ // hostTriple: hostTriple,
64
+ // env: env)
65
+ //
66
+ // if fileSystem.exists(swiftScanLibPath) {
67
+ // let libSwiftScanInstance = try SwiftScan(dylib: swiftScanLibPath)
68
+ // if libSwiftScanInstance.canQuerySupportedArguments() {
69
+ // return try libSwiftScanInstance.querySupportedArguments()
70
+ // }
71
+ // }
71
72
72
- // Fallback to invoking `swift-frontend -emit-supported-features`
73
+ // Invoke `swift-frontend -emit-supported-features`
73
74
let frontendOverride = try FrontendOverride ( & parsedOptions, diagnosticsEngine)
74
75
frontendOverride. setUpForTargetInfo ( toolchain)
75
76
defer { frontendOverride. setUpForCompilation ( toolchain) }
0 commit comments