Fix compilation issues when using string interpolation.
This commit is contained in:
parent
d693752eb1
commit
364fbdeb48
|
@ -66,6 +66,8 @@ extension FileElement: ExpressibleByStringLiteral {
|
|||
}
|
||||
}
|
||||
|
||||
extension FileElement: ExpressibleByStringInterpolation {}
|
||||
|
||||
extension Array: ExpressibleByUnicodeScalarLiteral where Element == FileElement {
|
||||
public typealias UnicodeScalarLiteralType = String
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Foundation
|
||||
|
||||
public struct Path: Codable, ExpressibleByStringLiteral, Equatable {
|
||||
public struct Path: Codable, ExpressibleByStringLiteral, ExpressibleByStringInterpolation, Equatable {
|
||||
public enum PathType: String, Codable {
|
||||
case relativeToCurrentFile
|
||||
case relativeToManifest
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// MARK: - FileList
|
||||
|
||||
/// A model to refer to source files that supports passing compiler flags.
|
||||
public struct SourceFileGlob: ExpressibleByStringLiteral, Codable, Equatable {
|
||||
public struct SourceFileGlob: ExpressibleByStringLiteral, ExpressibleByStringInterpolation, Codable, Equatable {
|
||||
/// Relative glob pattern.
|
||||
public let glob: Path
|
||||
|
||||
|
|
Loading…
Reference in New Issue