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.
2 parents b0ca843 + 9e52192 commit 24abc25Copy full SHA for 24abc25
Sources/swift-driver/main.swift
@@ -45,14 +45,17 @@ func getExitCode(_ code: Int32) -> Int32 {
45
}
46
47
do {
48
-
+ #if !os(Windows)
49
+ signal(SIGINT, SIG_IGN)
50
+ #endif
51
let processSet = ProcessSet()
52
interruptSignalSource.setEventHandler {
53
// Terminate running compiler jobs and let the driver exit gracefully, remembering
54
// to return a corresponding exit code when done.
55
processSet.terminate()
56
driverInterrupted = true
57
58
+ interruptSignalSource.resume()
59
60
if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {
61
CommandLine.arguments.append("-explicit-module-build")
0 commit comments