swan icon indicating copy to clipboard operation
swan copied to clipboard

Update swan-swiftc to handle non-relative paths better

Open NinjaLikesCheez opened this issue 9 months ago • 2 comments

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

NinjaLikesCheez avatar Mar 24 '25 12:03 NinjaLikesCheez

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?

karimhamdanali avatar Apr 16 '25 08:04 karimhamdanali

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.

NinjaLikesCheez avatar May 08 '25 10:05 NinjaLikesCheez