swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
736 stars 50 forks source link

Verify LLDB python version #539

Open adam-fowler opened 1 year ago

adam-fowler commented 1 year ago

Verify version of python in the path is the same version of python that liblldb was built against. Can use llvm-readobj to do this.

This is a request for Windows but may also be a valid request on other platforms.

adam-fowler commented 1 year ago

@compnerd I haven't checked Windows but llvm-readobj is not part of the standard swift install on macOS or Linux

compnerd commented 1 year ago

That sounds plausible. The Windows Swift distribution packages it. Linux can use readelf instead of llvm-readobj and Darwin can use otool. If we had the llvm tools it would be simpler since it can handle all three platforms.