[Support] Resolve symlinks in `getMainExecutable()` on Windows (#76304)
commitf11b056c02cca28fe0b82ec44c59537035100e67
authorAlexandre Ganea <37383324+aganea@users.noreply.github.com>
Tue, 26 Dec 2023 15:33:42 +0000 (26 15:33 +0000)
committerGitHub <noreply@github.com>
Tue, 26 Dec 2023 15:33:42 +0000 (26 10:33 -0500)
tree9b245af17bc381dac6d8de60554167337d40c3db
parentaca3727e97bced3e98f8e0719de95c93034a97d2
[Support] Resolve symlinks in `getMainExecutable()` on Windows (#76304)

This makes the Windows implementation for `getMainExecutable()` behave
the same as its Linux counterpart, in regards to symlinks. Previously,
when using `cmake ... -DLLVM_USE_SYMLINKS=ON`, calling this function
wouldn't resolve to the "real", non-symlinked path.
llvm/lib/Support/Windows/Path.inc