Fix compilation issues when using string interpolation.

This commit is contained in:
Wojciech Chojnacki 2020-03-08 22:00:30 +00:00
parent d693752eb1
commit 364fbdeb48
No known key found for this signature in database
GPG Key ID: A3173831A8675D75
3 changed files with 4 additions and 2 deletions

View File

@ -66,6 +66,8 @@ extension FileElement: ExpressibleByStringLiteral {
}
}
extension FileElement: ExpressibleByStringInterpolation {}
extension Array: ExpressibleByUnicodeScalarLiteral where Element == FileElement {
public typealias UnicodeScalarLiteralType = String
}

View File

@ -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

View File

@ -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