[swift-build-dev] FYI: `swift test` requiring all build flags
Daniel Dunbar
daniel_dunbar at apple.com
Tue Jul 26 16:30:41 CDT 2016
Hi all,
There is currently an issue in the package manager where `swift test` doesn't always build the most recent content in the repository. This is an artifact of the initial implementation, but it has one mildly useful feature which is that `swift test` will "happen" to build with the flags (-Xlinker, etc.) last passed to `swift build`. See:
https://github.com/apple/swift-package-manager/pull/494 <https://github.com/apple/swift-package-manager/pull/494>
https://bugs.swift.org/browse/SR-1135
I intend to fix this behavior, but please note that this will require everyone who currently needs to build with `-Xlinker ` etc. flags to pass them to *both* `swift build` and `swift test`.
I recognize this may be inconvenient in the short term, but it is more important that we fix `swift test` to always build the content present in the repository. The long term goal is, as ever, to provide explicit features instead of users needing to rely on the `-Xlinker` style flags.
- Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20160726/588c3b5b/attachment.html>
More information about the swift-build-dev
mailing list