1 From a79eb8b6e192b36ded8f7b5b6757326b3d6753bd Mon Sep 17 00:00:00 2001
2 From: Mike Hommey <mh@glandium.org>
3 Date: Thu, 13 Jun 2024 15:02:45 +0900
4 Subject: [PATCH] Revert "[Support] Resolve symlinks in `getMainExecutable()`
7 This reverts commit f11b056c02cca28fe0b82ec44c59537035100e67.
9 llvm/lib/Support/Windows/Path.inc | 5 +----
10 1 file changed, 1 insertion(+), 4 deletions(-)
12 diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
13 index 3e4c1f74161c..2c490848a006 100644
14 --- a/llvm/lib/Support/Windows/Path.inc
15 +++ b/llvm/lib/Support/Windows/Path.inc
16 @@ -154,10 +154,7 @@ std::string getMainExecutable(const char *argv0, void *MainExecAddr) {
19 llvm::sys::path::make_preferred(PathNameUTF8);
21 - SmallString<256> RealPath;
22 - sys::fs::real_path(PathNameUTF8, RealPath);
23 - return std::string(RealPath);
24 + return std::string(PathNameUTF8.data());
27 UniqueID file_status::getUniqueID() const {