[swift-build-dev] SwiftPM platform-specific build folders

David Hart david at hartbit.com
Mon Jun 19 17:19:18 CDT 2017


Hello mailing-list,

I’m implementing SR-3583 <https://bugs.swift.org/browse/SR-3583> that builds SwiftPM products into platform-specific sub-folders. For example, on macOS, a default build will no longer build products into .build/debug but instead in .build/macosx-x86_64/debug.

To alleviate this breaking change, several solutions have been planned:

SE-0179 <https://github.com/apple/swift-evolution/blob/master/proposals/0179-swift-run-command.md>: A new swift run tool to allow users to run executable products without knowing their exact location.
SR-3583 will create a symlink after each build pointing from the old to the new build folder for backwards compatibility.
SR-5259 <https://bugs.swift.org/browse/SR-5259>: A new —bin-path option for the swift build command to print the build folder for 3rd party tools to use.

Of the above, only SE-0179 is currently fully implemented in master.

What does everybody think about this change and the solutions put into place to support it?

Regards,
David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20170620/0e3d577d/attachment.html>


More information about the swift-build-dev mailing list