File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,17 @@ 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)
60
+ if env [ " SWIFT_DRIVER_USE_SWIFT_SCAN_FEATURES_QUERY " ] != nil {
61
+ // If libSwiftScan library is present, use it to query
62
+ let swiftScanLibPath = try Self . getScanLibPath ( of: toolchain,
63
+ hostTriple: hostTriple,
64
+ env: env)
64
65
65
- if fileSystem. exists ( swiftScanLibPath) {
66
- let libSwiftScanInstance = try SwiftScan ( dylib: swiftScanLibPath)
67
- if libSwiftScanInstance. canQuerySupportedArguments ( ) {
68
- return try libSwiftScanInstance. querySupportedArguments ( )
66
+ if fileSystem. exists ( swiftScanLibPath) {
67
+ let libSwiftScanInstance = try SwiftScan ( dylib: swiftScanLibPath)
68
+ if libSwiftScanInstance. canQuerySupportedArguments ( ) {
69
+ return try libSwiftScanInstance. querySupportedArguments ( )
70
+ }
69
71
}
70
72
}
71
73
You can’t perform that action at this time.
0 commit comments