You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has occurred on multiple projects; see https://github.com/kelvin13/noise for an example of a “real” project (with actual modules) that’s failing to build. A highly reduced test case is attached.
Same as SR-5005: I don't think you can just add -whole-module-optimization using -Xswiftc. The package manager has to know about it to link your project correctly.
Thats right. `-Xswiftc` is workaround to lack of build settings and we pass these flags to compiler/linker as-is. You can use `-c release` to turn on WMO. We will have some kind of feature to allow custom build configurations but for now you only have the two inbuilt choices.
Attachment: Download
Environment
Ubuntu 17.04, swift-3.1-dev trunk, also tested on swift-3.1-RELEASE
Additional Detail from JIRA
md5: 9b05891d406477c3bb6b9cb05f2e887b
duplicates:
is duplicated by:
relates to:
Issue Description:
My projects build normally, but when the `-Xswiftc -whole-module-optimization` flag is passed, the build fails with something like
This has occurred on multiple projects; see https://github.com/kelvin13/noise for an example of a “real” project (with actual modules) that’s failing to build. A highly reduced test case is attached.
Related: https://bugs.swift.org/browse/SR-5005
The text was updated successfully, but these errors were encountered: