jpsim / SourceKitten

An adorable little framework and command line tool for interacting with SourceKit.
MIT License
2.31k stars 226 forks source link

SourceKittenFramework: largely port library loading for Windows #784

Closed compnerd closed 1 year ago

compnerd commented 1 year ago

This adds Windows specific handling for dynamic symbol resolution into a library. The dlopen and dlsym APIs are not portable as they are part of POSIX rather than the C standard. Use the Windows equivalents of LoadLibraryW and GetProcAddress.

TODO: this requires further refinement to detect the Swift toolchain installation.

jpsim commented 1 year ago

TODO: this requires further refinement to detect the Swift toolchain installation.

I’m fine if you do this as a follow-up.

compnerd commented 1 year ago

Yeah, I think that we should address that as a follow up. The current plan to change the install location means that this path is going to need to be dynamic.