Skip to content

Commit 69d143f

Browse files
committed
Add abi descriptor to the output file list
1 parent 4f7ea25 commit 69d143f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/SwiftDriver/Jobs/EmitModuleJob.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ extension Driver {
9292
commandLine.appendPath(outputPath)
9393
if isFeatureSupported(.emit_abi_descriptor) {
9494
commandLine.appendFlag(.emitAbiDescriptorPath)
95-
commandLine.appendPath(outputPath.replacingExtension(with: .jsonABIBaseline))
95+
let abiOutput = outputPath.replacingExtension(with: .jsonABIBaseline)
96+
commandLine.appendPath(abiOutput)
97+
outputs.append(TypedVirtualPath(file: abiOutput.intern(), type: .jsonABIBaseline))
9698
}
9799
return Job(
98100
moduleName: moduleOutputInfo.name,

Sources/SwiftDriver/Jobs/MergeModuleJob.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ extension Driver {
7878

7979
if isFeatureSupported(.emit_abi_descriptor) {
8080
commandLine.appendFlag(.emitAbiDescriptorPath)
81-
commandLine.appendPath(outputPath.replacingExtension(with: .jsonABIBaseline))
81+
let abiOutput = outputPath.replacingExtension(with: .jsonABIBaseline)
82+
commandLine.appendPath(abiOutput)
83+
outputs.append(TypedVirtualPath(file: abiOutput.intern(), type: .jsonABIBaseline))
8284
}
8385
return Job(
8486
moduleName: moduleOutputInfo.name,

0 commit comments

Comments
 (0)