Commit f6da543
authored
generator/linux: Use
Swift Package Manager's linker flag handling changed between 5.9 and 5.10. The flags which work for 5.9 cause linking failures 5.10 and later, and vice versa:
swiftlang/swift-package-manager#7222
This commit generates workaround flags for 5.9 and new-style flags for all other versions.
The EndToEnd tests currently cannot run in CI, so this change was tested locally. (Issue #145)
* The basic 'hello world' example generated by `swift package init` built successfully with 5.9.2, 5.10.1 and 6.0.2 SDKs on x86_64 and aarch64.
* A more complex example using Vapor built succesfully with 5.9.2, 5.10.1. 6.0.2 failed because of the CShims problem reported in Issue #138.--ldpath linker flag for 5.9 (#151)1 parent 3e7755c commit f6da543
1 file changed
+13
-6
lines changedLines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | | - | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
0 commit comments