Open krzyzanowskim opened 5 years ago
Reproduced with snapshot 2019-02-14-a
on macOS 10.13.6. This is not specific to sourcekit-lsp. You can reproduce with a fresh executable package:
$ export TOOLCHAINS=org.swift.50201902141a
$ swift package init --type executable
$ swift build --static-swift-stdlib
Swift on macOS isn't going to support static linking at all, so we'll need a different answer for this.
Environment
macOS 10.14.3 (18D109)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 1 | |Component/s | Compiler | |Labels | Bug | |Assignee | @mikeash | |Priority | Medium | md5: cac680cfa4b5f549f8d9dce48990b59fIssue Description:
1. Install Toolchain: https://swift.org/builds/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2019-02-14-a/swift-DEVELOPMENT-SNAPSHOT-2019-02-14-a-osx.pkg
2. Use sourcekit-lsp for the Toolchain https://github.com/apple/sourcekit-lsp/tree/swift-DEVELOPMENT-SNAPSHOT-2019-02-14-a
3. Build using Toolchain, with static linking option enabled:
It's worth to mention that it compiles just fine without "--static-swift-stdlib". Also it worked fine with some Toolchains (not all)
option.