@@ -192,7 +192,13 @@ public class Target: ObjectIdentifierProtocol, PolymorphicCodableProtocol {
192
192
}
193
193
}
194
194
195
- public class SwiftTarget : Target {
195
+ extension Target : CustomStringConvertible {
196
+ public var description : String {
197
+ return " < \( Swift . type ( of: self ) ) : \( name) > "
198
+ }
199
+ }
200
+
201
+ public final class SwiftTarget : Target {
196
202
197
203
/// The file name of linux main file.
198
204
public static let linuxMainBasename = " LinuxMain.swift "
@@ -258,7 +264,7 @@ public class SwiftTarget: Target {
258
264
}
259
265
}
260
266
261
- public class SystemLibraryTarget : Target {
267
+ public final class SystemLibraryTarget : Target {
262
268
263
269
/// The name of pkgConfig file, if any.
264
270
public let pkgConfig : String ?
@@ -319,7 +325,7 @@ public class SystemLibraryTarget: Target {
319
325
}
320
326
}
321
327
322
- public class ClangTarget : Target {
328
+ public final class ClangTarget : Target {
323
329
324
330
/// The default public include directory component.
325
331
public static let defaultPublicHeadersComponent = " include "
@@ -408,7 +414,7 @@ public class ClangTarget: Target {
408
414
}
409
415
}
410
416
411
- public class BinaryTarget : Target {
417
+ public final class BinaryTarget : Target {
412
418
413
419
/// The original source of the binary artifact.
414
420
public enum ArtifactSource : Equatable , Codable {
@@ -539,12 +545,6 @@ public enum ModuleMapType: Equatable, Codable {
539
545
}
540
546
}
541
547
542
- extension Target : CustomStringConvertible {
543
- public var description : String {
544
- return " < \( Swift . type ( of: self ) ) : \( name) > "
545
- }
546
- }
547
-
548
548
extension Sources {
549
549
/// Determine target type based on the sources.
550
550
fileprivate func computeTargetType( ) -> Target . Kind {
0 commit comments