File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Source/SourceKittenFramework Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 10
10
use the ` clean ` action on ` xcodebuild ` .
11
11
[ Norio Nomura] ( https://github.com/norio-nomura )
12
12
13
+ * Use 'as' bridging on Linux when using Swift 4.2.
14
+ [ JP Simard] ( https://github.com/jpsim )
15
+
13
16
##### Bug Fixes
14
17
15
18
* None.
Original file line number Diff line number Diff line change @@ -80,7 +80,10 @@ archive:
80
80
release : package archive
81
81
82
82
docker_test :
83
- docker run -v ` pwd` :` pwd` -w ` pwd` --rm norionomura/swift:40 swift test
83
+ docker run -v ` pwd` :` pwd` -w ` pwd` --name sourcekitten --rm norionomura/swift:42 swift test --parallel
84
+
85
+ docker_htop :
86
+ docker run -it --rm --pid=container:sourcekitten terencewestphal/htop || reset
84
87
85
88
# http://irace.me/swift-profiling/
86
89
display_compilation_time :
Original file line number Diff line number Diff line change @@ -10,50 +10,50 @@ import Foundation
10
10
11
11
extension Array {
12
12
public func bridge( ) -> NSArray {
13
- #if os(Linux)
14
- return NSArray ( array: self )
15
- #else
13
+ #if _runtime(_ObjC) || swift(>=4.1.50)
16
14
return self as NSArray
15
+ #else
16
+ return NSArray ( array: self )
17
17
#endif
18
18
}
19
19
}
20
20
21
21
extension CharacterSet {
22
22
public func bridge( ) -> NSCharacterSet {
23
- #if os(Linux)
24
- return _bridgeToObjectiveC ( )
25
- #else
23
+ #if _runtime(_ObjC) || swift(>=4.1.50)
26
24
return self as NSCharacterSet
25
+ #else
26
+ return _bridgeToObjectiveC ( )
27
27
#endif
28
28
}
29
29
}
30
30
31
31
extension Dictionary {
32
32
public func bridge( ) -> NSDictionary {
33
- #if os(Linux)
34
- return NSDictionary ( dictionary: self )
35
- #else
33
+ #if _runtime(_ObjC) || swift(>=4.1.50)
36
34
return self as NSDictionary
35
+ #else
36
+ return NSDictionary ( dictionary: self )
37
37
#endif
38
38
}
39
39
}
40
40
41
41
extension NSString {
42
42
public func bridge( ) -> String {
43
- #if os(Linux)
44
- return _bridgeToSwift ( )
45
- #else
43
+ #if _runtime(_ObjC) || swift(>=4.1.50)
46
44
return self as String
45
+ #else
46
+ return _bridgeToSwift ( )
47
47
#endif
48
48
}
49
49
}
50
50
51
51
extension String {
52
52
public func bridge( ) -> NSString {
53
- #if os(Linux)
54
- return NSString ( string: self )
55
- #else
53
+ #if _runtime(_ObjC) || swift(>=4.1.50)
56
54
return self as NSString
55
+ #else
56
+ return NSString ( string: self )
57
57
#endif
58
58
}
59
59
}
You can’t perform that action at this time.
0 commit comments