swiftlang / swift-sdk-generator

Generate Swift SDKs for cross-compilation
Apache License 2.0
182 stars 15 forks source link

generator/linux: Use `--ldpath` linker flag for 5.9 #151

Closed euanh closed 1 week ago

euanh commented 1 week ago

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:

https://github.com/swiftlang/swift-package-manager/issues/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)

euanh commented 1 week ago

@swift-ci test

euanh commented 1 week ago

@swift-ci test