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 {
|
extension Array: ExpressibleByUnicodeScalarLiteral where Element == FileElement {
|
||||||
public typealias UnicodeScalarLiteralType = String
|
public typealias UnicodeScalarLiteralType = String
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public struct Path: Codable, ExpressibleByStringLiteral, Equatable {
|
public struct Path: Codable, ExpressibleByStringLiteral, ExpressibleByStringInterpolation, Equatable {
|
||||||
public enum PathType: String, Codable {
|
public enum PathType: String, Codable {
|
||||||
case relativeToCurrentFile
|
case relativeToCurrentFile
|
||||||
case relativeToManifest
|
case relativeToManifest
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// MARK: - FileList
|
// MARK: - FileList
|
||||||
|
|
||||||
/// A model to refer to source files that supports passing compiler flags.
|
/// 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.
|
/// Relative glob pattern.
|
||||||
public let glob: Path
|
public let glob: Path
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue