Update swan-swiftc to handle non-relative paths better
In addition, update swift-argument-parser and refactor some logic:
- use URL for path operations
- refactor for changes to swift-argument-parser
- use xcrun + user-configurable --sdk option to allow for SDK library discovery
- update swiftc arguments to match recent versions of swiftc
Sorry it took me a while to get to this PR. I was wondering though if you managed to compiler SWAN and run its tests with this new setup? Which version of Xcode and Swift have you tried it on?
Sorry it took me a while to get to this PR. I was wondering though if you managed to compiler SWAN and run its tests with this new setup? Which version of Xcode and Swift have you tried it on?
Sorry somehow I just noticed this! I was using Xcode 16.3 and Swift 6 - it was working pretty well. I have however just noticed that SWAN is also expected to run on Linux and this would need to change to support that (no xcrun on Linux). Test were not working since SWAN needs to update to support new SIL constructs.