Skip to content

Commit

Permalink
Merge pull request #1031 from mxcl/v7-travis-swift-5-GM
Browse files Browse the repository at this point in the history
[travis] Swift 5 GM; Fix Linux compile
  • Loading branch information
mxcl committed Apr 7, 2019
2 parents 4c09a11 + 7600e18 commit a871593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
xcode_destination: 'OS=12.2,name=Apple TV'

- name: Linux
env: SWIFT_VERSION='5.0-DEVELOPMENT-SNAPSHOT-2019-01-22-a'
env: SWIFT_VERSION='5.0'
os: linux
language: generic
osx_image: null
Expand Down
2 changes: 1 addition & 1 deletion Sources/hang.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import CoreFoundation
*/
public func hang<T>(_ promise: Promise<T>) throws -> T {
#if os(Linux) || os(Android)
#if swift(>=4.2)
#if compiler(>=5)
let runLoopMode: CFRunLoopMode = kCFRunLoopDefaultMode
#else
// isMainThread is not yet implemented on Linux.
Expand Down

0 comments on commit a871593

Please sign in to comment.