Skip to content

Commit

Permalink
Use compiler(>=6.1) to gate for the main branch toolchain
Browse files Browse the repository at this point in the history
We used a hack to distinguish the main branch toolchain and 6.0 branch
toolchain, but the main branch has been bumped to 6.1, so we can use
`compiler(>=6.1)` to gate for the main branch toolchain.
  • Loading branch information
kateinoigakukun committed Sep 26, 2024
1 parent 9229214 commit ff1aa40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public final class JavaScriptEventLoop: SerialExecutor, @unchecked Sendable {
return _shared
}

#if compiler(>=6.0) && hasFeature(IsolatedAny2) && _runtime(_multithreaded)
#if compiler(>=6.1) && _runtime(_multithreaded)
// In multi-threaded environment, we have an event loop executor per
// thread (per Web Worker). A job enqueued in one thread should be
// executed in the same thread under this global executor.
Expand Down
2 changes: 1 addition & 1 deletion Sources/JavaScriptEventLoop/WebWorkerTaskExecutor.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if compiler(>=6.0) && hasFeature(IsolatedAny2) && _runtime(_multithreaded) // @_expose and @_extern are only available in Swift 6.0+
#if compiler(>=6.1) && _runtime(_multithreaded) // @_expose and @_extern are only available in Swift 6.0+

import JavaScriptKit
import _CJavaScriptKit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if compiler(>=6.0) && hasFeature(IsolatedAny2) && _runtime(_multithreaded)
#if compiler(>=6.1) && _runtime(_multithreaded)
import XCTest
import JavaScriptKit
import _CJavaScriptKit // For swjs_get_worker_thread_id
Expand Down

0 comments on commit ff1aa40

Please sign in to comment.