We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd49a5 commit 3001511Copy full SHA for 3001511
Plugins/AWSLambdaPackager/PluginUtils.swift
@@ -30,13 +30,9 @@ struct Utils {
30
print("\(executable.absoluteString) \(arguments.joined(separator: " "))")
31
}
32
33
-// #if compiler(>=6.0) && compiler(<6.0.1) && os(Linux)
34
-// let fd = dup(1)!
35
-// #else
36
let fd = dup(1)
37
-// #endif
38
let stdout = fdopen(fd, "rw")
39
- defer { fclose(stdout) }
+ defer { fclose(stdout!) }
40
41
// We need to use an unsafe transfer here to get the fd into our Sendable closure.
42
// This transfer is fine, because we write to the variable from a single SerialDispatchQueue here.
0 commit comments