File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -20,23 +20,21 @@ private func isAndroid() -> Bool {
20
20
( try ? localFileSystem. isFile ( AbsolutePath ( validating: " /system/bin/toybox " ) ) ) ?? false
21
21
}
22
22
23
- public enum Platform : Equatable {
23
+ public enum Platform : Equatable , Sendable {
24
24
case android
25
25
case darwin
26
26
case linux( LinuxFlavor )
27
27
case windows
28
28
29
29
/// Recognized flavors of linux.
30
- public enum LinuxFlavor : Equatable {
30
+ public enum LinuxFlavor : Equatable , Sendable {
31
31
case debian
32
32
case fedora
33
33
}
34
34
}
35
35
36
36
extension Platform {
37
- // This is not just a computed property because the ToolchainRegistryTests
38
- // change the value.
39
- public static var current : Platform ? = {
37
+ public static let current : Platform ? = {
40
38
#if os(Windows)
41
39
return . windows
42
40
#else
Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ public struct TargetSourcesBuilder {
563
563
}
564
564
565
565
/// Describes a rule for including a source or resource file in a target.
566
- public struct FileRuleDescription {
566
+ public struct FileRuleDescription : Sendable {
567
567
/// A rule semantically describes a file/directory in a target.
568
568
///
569
569
/// It is up to the build system to translate a rule into a build command.
You can’t perform that action at this time.
0 commit comments