Merge pull request #249 from glessard/feature-flag-condition

Gate 6.2 features by feature flag
This commit is contained in:
Guillaume Lessard authored and GitHub committed 2025-07-30 09:46:08 -07:00
commit e0d9cb0638
6 files changed
+18 -18

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
#if compiler(>=6.2)
#if compiler(>=6.2) && $Lifetimes
#if os(Linux)
import CSystem
@@ -67,5 +67,5 @@ public extension IORing.Completion {
}
}
}
#endif
#endif
#endif // os(Linux)
#endif // compiler(>=6.2) && $Lifetimes
+3 -3
View File
@@ -1,4 +1,4 @@
#if compiler(>=6.2)
#if compiler(>=6.2) && $Lifetimes
#if os(Linux)
import CSystem
@@ -493,5 +493,5 @@ extension IORing.Request {
return request
}
}
#endif
#endif
#endif // os(Linux)
#endif // compiler(>=6.2) && $Lifetimes
+3 -3
View File
@@ -1,4 +1,4 @@
#if compiler(>=6.2)
#if compiler(>=6.2) && $Lifetimes
#if os(Linux)
import CSystem
@@ -900,5 +900,5 @@ extension IORing.RegisteredBuffer {
return unsafe _overrideLifetime(span, borrowing: self)
}
}
#endif
#endif
#endif // os(Linux)
#endif // compiler(>=6.2) && $Lifetimes
+3 -3
View File
@@ -1,4 +1,4 @@
#if compiler(>=6.2)
#if compiler(>=6.2) && $Lifetimes
#if os(Linux)
import CSystem
@@ -201,5 +201,5 @@ extension RawIORequest {
}
}
}
#endif
#endif
#endif // os(Linux)
#endif // compiler(>=6.2) && $Lifetimes
+3 -3
View File
@@ -1,4 +1,4 @@
#if compiler(>=6.2)
#if compiler(>=6.2) && $Lifetimes
#if os(Linux)
import XCTest
@@ -30,5 +30,5 @@ final class IORequestTests: XCTestCase {
XCTAssertEqual(sourceBytes, .init(repeating: 0, count: 64))
}
}
#endif
#endif
#endif // os(Linux)
#endif // compiler(>=6.2) && $Lifetimes
+3 -3
View File
@@ -1,4 +1,4 @@
#if compiler(>=6.2)
#if compiler(>=6.2) && $Lifetimes
#if os(Linux)
import XCTest
@@ -128,5 +128,5 @@ final class IORingTests: XCTestCase {
rawBuffer.deallocate()
}
}
#endif
#endif
#endif // os(Linux)
#endif // compiler(>=6.2) && $Lifetimes