[swift-users] Cancelling an SPM build cleanly

Daniel Dunbar daniel_dunbar at apple.com
Tue Nov 7 12:49:12 CST 2017

> On Nov 7, 2017, at 10:25 AM, Geordie J <geojay at gmail.com> wrote:
> I was just reminded of this issue by another thread (thanks Daniel Dunbar for https://github.com/apple/swift-llbuild/pull/196 <https://github.com/apple/swift-llbuild/pull/196>!)
> Is it possible to cancel an SPM build cleanly? If I run swift build and then press Ctrl-C halfway through I end up in a weird broken state that requires a swift package clean before anything works again. Maybe because SPM thinks it’s still building the last job?

This is always a bug, please file!

FWIW, I cancel builds all the time and haven’t seen this issue, so it would be good to provide as many details as possible.

 - Daniel

> I ask because sometimes I start a build, realise I actually wanted to make one more change and then press start again. This works in Xcode and breaks in SPM.
> Thanks,
> Geordie

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171107/3a63bc4f/attachment.html>

More information about the swift-users mailing list