[Lldb-commits] [lldb] [llvm] On Windows, fix Swig detection when using a WinGet shim (PR #191554)

Alexandre Ganea via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 13 05:49:36 PDT 2026


aganea wrote:

Actually WinGet simply creates a symlink, so it's not specific to WinGet. I suppose other package mangers on Windows could do the same thing.
```
C:\git\llvm-project>where swig
C:\Users\alex_\AppData\Local\Microsoft\WinGet\Links\swig.exe

C:\git\llvm-project>dir C:\Users\alex_\AppData\Local\Microsoft\WinGet\Links
 Volume in drive C is OS
 Volume Serial Number is E2E1-321D

 Directory of C:\Users\alex_\AppData\Local\Microsoft\WinGet\Links

04/13/2026  08:35 AM    <DIR>          .
04/13/2026  08:35 AM    <DIR>          ..
04/13/2026  08:35 AM    <SYMLINK>      ccache-swig.exe [C:\Users\alex_\AppData\Local\Microsoft\WinGet\Packages\SWIG.SWIG_Microsoft.Winget.Source_8wekyb3d8bbwe\swigwin-4.4.1\CCache\ccache-swig.exe]
04/13/2026  08:35 AM    <SYMLINK>      swig.exe [C:\Users\alex_\AppData\Local\Microsoft\WinGet\Packages\SWIG.SWIG_Microsoft.Winget.Source_8wekyb3d8bbwe\swigwin-4.4.1\swig.exe]
               2 File(s)              0 bytes

C:\git\llvm-project>swig -swiglib
C:\Users\alex_\AppData\Local\Microsoft\WinGet\Links\Lib
```
I could craft something simpler, or at least just transform L45 in FindPythonAndSwig.cmake from `STATUS` to a `WARNING` to make it clearer in the output? The core problem is that the failure is silent.

https://github.com/llvm/llvm-project/pull/191554


More information about the lldb-commits mailing list