Skip to content

Commit 3f3a67d

Browse files
[ABIChecking] Use -Isystem and -Fsystem for swift-api-digester
swift-api-digester supports the Swift -Fsystem and -Isystem flags, switch to those. rdar://152747553
1 parent 1670905 commit 3f3a67d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Sources/SwiftDriver/Jobs/APIDigesterJobs.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,8 @@ extension Driver {
193193
commandLine.appendFlag(.resourceDir)
194194
commandLine.appendPath(VirtualPath.lookup(frontendTargetInfo.runtimeResourcePath.path))
195195

196-
try commandLine.appendAll(.I, from: &parsedOptions)
197-
for systemImport in parsedOptions.arguments(for: .Isystem) {
198-
commandLine.appendFlag(.I)
199-
commandLine.appendFlag(systemImport.argument.asSingle)
200-
}
201-
try commandLine.appendAll(.F, from: &parsedOptions)
202-
for systemFramework in parsedOptions.arguments(for: .Fsystem) {
203-
commandLine.appendFlag(.iframework)
204-
commandLine.appendFlag(systemFramework.argument.asSingle)
205-
}
196+
try commandLine.appendAll(.I, .Isystem, from: &parsedOptions)
197+
try commandLine.appendAll(.F, .Fsystem, from: &parsedOptions)
206198

207199
try commandLine.appendLast(.swiftVersion, from: &parsedOptions)
208200
}

0 commit comments

Comments
 (0)