File tree Expand file tree Collapse file tree 7 files changed +10
-9
lines changed
Tests/PackageLoadingTests Expand file tree Collapse file tree 7 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2014-2020 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2014-2021 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2014-2018 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
@@ -43,6 +43,7 @@ public enum BuildSettings {
43
43
/// The assignment value.
44
44
public var values : [ String ]
45
45
46
+ // FIXME: This should use `Set` but we need to investigate potential build failures on Linux caused by using it.
46
47
/// The condition associated with this assignment.
47
48
public var conditions : [ PackageCondition ] {
48
49
get {
@@ -71,6 +72,7 @@ public enum BuildSettings {
71
72
72
73
/// Add the given assignment to the table.
73
74
mutating public func add( _ assignment: Assignment , for decl: Declaration ) {
75
+ // FIXME: We should check for duplicate assignments.
74
76
assignments [ decl, default: [ ] ] . append ( assignment)
75
77
}
76
78
}
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2021-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2014-2020 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2014-2021 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2014-2021 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
@@ -19,8 +19,7 @@ import XCTest
19
19
import class TSCBasic. InMemoryFileSystem
20
20
21
21
/// Tests for the handling of source layout conventions.
22
- class PackageBuilderTests : XCTestCase {
23
-
22
+ final class PackageBuilderTests : XCTestCase {
24
23
func testDotFilesAreIgnored( ) throws {
25
24
let fs = InMemoryFileSystem ( emptyFiles:
26
25
" /Sources/foo/.Bar.swift " ,
You can’t perform that action at this time.
0 commit comments