Skip to content

Commit c782d46

Browse files
author
Karim Alweheshy
committed
add abi.json
1 parent 625486b commit c782d46

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tools/swiftc_stub/main.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
import Foundation
44

5-
// Log command and arguments
6-
let logMessage = """
7-
\(CommandLine.arguments.joined(separator: " "))
8-
"""
9-
try logMessage.appendLineToURL(fileURL: URL(fileURLWithPath: NSHomeDirectory()).appendingPathComponent("rulesxcodeproj_ld.log"))
10-
115
extension String {
126
func appendLineToURL(fileURL: URL) throws {
137
try (self + "\n").appendToURL(fileURL: fileURL)
@@ -158,11 +152,14 @@ func touchSwiftmoduleArtifacts(paths: [PathKey: [URL]]) throws {
158152
.appendingPathExtension("swiftsourceinfo")
159153
var swiftinterfacePath = pathNoExtension
160154
.appendingPathExtension("swiftinterface")
155+
var abiDescriptorPath = pathNoExtension
156+
.appendingPathExtension("abi.json")
161157

162158
try swiftmodulePath.touch()
163159
try swiftdocPath.touch()
164160
try swiftsourceinfoPath.touch()
165161
try swiftinterfacePath.touch()
162+
try abiDescriptorPath.touch()
166163
}
167164
}
168165

0 commit comments

Comments
 (0)