Skip to content

Commit

Permalink
Merge pull request #1644 from tayloraswift/enable-linux-build
Browse files Browse the repository at this point in the history
use #if directives to conditionally `@preconcurrency import `the `Dispatch` module to enable building the package on linux
  • Loading branch information
groue authored Oct 6, 2024
2 parents dc03b8a + 5f2185a commit fd04831
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GRDB/Core/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import SQLCipher
import SQLite3
#endif

#if !canImport(Darwin)
@preconcurrency
#endif
import Dispatch
import Foundation

Expand Down
3 changes: 3 additions & 0 deletions GRDB/Core/SchedulingWatchdog.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#if !canImport(Darwin)
@preconcurrency
#endif
import Dispatch

/// SchedulingWatchdog makes sure that databases connections are used on correct
Expand Down
3 changes: 3 additions & 0 deletions GRDB/Utils/Utils.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#if !canImport(Darwin)
@preconcurrency import Dispatch
#endif
import Foundation

// MARK: - Public
Expand Down

0 comments on commit fd04831

Please sign in to comment.